LatNet Builder Manual  2.0.1-11
Software Package for Constructing Highly Uniform Point Sets
LatticeTester::CoordinateSets::Subsets Class Reference

This class implements CoordinateSets for any set of coordinates. 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. More...
 
const Coordinatescoords () const
 Returns the coordinates, as passed to the constructor Subsets(const Coordinates&,Coordinates::size_type,Coordinates::size_type)
 
Coordinates::size_type minOrder () const
 Returns minOrder, as passed to the constructor Subsets(const Coordinates&,Coordinates::size_type,Coordinates::size_type)
 
Coordinates::size_type maxOrder () const
 Returns maxOrder, as passed to the constructor Subsets(const Coordinates&,Coordinates::size_type,Coordinates::size_type)
 
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.
 

Detailed Description

This class implements CoordinateSets for any set of coordinates.

It is more powerful than the class FromRange, but slightly slower (by 15–20% according to empirical tests).

Constructor & Destructor Documentation

◆ Subsets()

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}}.


The documentation for this class was generated from the following file: