LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
|
This class implements a CoordinateSets that will build all the subsets of a Coordinates object that are of a cardinality in a certain range. More...
#include <CoordinateSets.h>
Classes | |
class | const_iterator |
An iterator class used internaly by the Subsets class. More... |
Public Member Functions | |
Subsets (const Coordinates &coords, Coordinates::size_type minOrder, Coordinates::size_type maxOrder) | |
Constructs a set of all subsets of coords with minimum and maximum cardinality specified by minOrder and maxOrder. | |
const Coordinates & | coords () const |
Returns the coordinates, as passed to the constructor. | |
Coordinates::size_type | minOrder () const |
Returns minOrder, as passed to the constructor. | |
Coordinates::size_type | maxOrder () const |
Returns maxOrder, as passed to the constructor. | |
const_iterator | begin () const |
Returns an iterator pointing to the first element of *this. | |
const_iterator | end () const |
Returns an iterator pointing past the last element of *this. |
This class implements a CoordinateSets that will build all the subsets of a Coordinates object that are of a cardinality in a certain range.
This is a less flexible class than FromRanges but, in the example Subsets.cc it has been slightly faster in our tests.
LatticeTester::CoordinateSets::Subsets::Subsets | ( | const Coordinates & | coords, |
Coordinates::size_type | minOrder, | ||
Coordinates::size_type | maxOrder ) |
Constructs a set of all subsets of coords with minimum and maximum cardinality specified by minOrder and maxOrder.
For example, to select all 1, 2, and 3-tuples over coordinates 2, 4, 6, one may use the declaration Subsets tousens(ens, 1, 3), where set ens is {2,4,6}; this gives the sets tousens = {{2}, {4}, {6}, {2, 4}, {2, 6}, {4, 6}, {2, 4, 6}}.
References coords(), maxOrder(), and minOrder().
Referenced by LatticeTester::CoordinateSets::Subsets::const_iterator::const_iterator(), LatticeTester::CoordinateSets::Subsets::const_iterator::const_iterator(), and LatticeTester::CoordinateSets::Subsets::const_iterator::operator++().