11#include <util/containers/Pair.h>
12#include <util/containers/GArray.h>
67 {
return (a.value < b.value); }
78 void sort(std::vector< Item<T> >& items);
99 void findBunches(std::vector< Item<T> >
const & items,
106 extern template void sort<double>(std::vector< Item<double> >& );
107 extern template void sort<float>(std::vector< Item<float> >& );
110 void findBunches<double>(std::vector< Item<double> >
const &,
114 void findBunches<float>(std::vector< Item<float> >
const &,
An automatically growable array, analogous to a std::vector.
An array of exactly 2 objects.
bool operator<(Item< T > const &a, Item< T > const &b)
Less than comparator for Item<T> objects.
void findBunches(std::vector< Item< T > > const &items, GArray< Bunch > &bunches, T epsilon)
Identify "bunches" of equal values within a sorted vector.
void sort(std::vector< Item< T > > &items)
Sort a std::vector< Item<T> > by ascending item value.
PSCF package top-level namespace.
Struct with value and index, to keep track of permutation.