LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
|
This class represents a set of indices with lacunary values. More...
#include <Lacunary.h>
Public Member Functions | |
Lacunary (const BasIntVec &C, int t) | |
Constructor for a set of \(t\) indices given in the vector C. | |
Lacunary (int t=0) | |
Constructor for an empty set of \(t\) lacunary indices. | |
~Lacunary () | |
Destructor. | |
BasInt & | operator[] (int i) |
Returns a reference to the value of m_lac[i]. | |
BasInt & | getLac (int i) |
Calling the object.getLac(i) gives the same result than calling object[i]. | |
int | getSize () const |
Returns the size of the set, that is the number of elements in the vector of indices. | |
bool | calcIndicesStreams (int s, int w, int maxDim) |
Fills the values of this object with maxDim indices starting from 0 by groups of \(s\), spaced apart by \(2^w\). | |
std::string | toString () const |
Returns a string that describes this object. |
This class represents a set of indices with lacunary values.
This class stores the values of those indices as a vector, and they can be accessed via the [] operator. There also is a method to construct a set with values spaced in a certain way. This class is present here to be used with the subclasses of IntLattice.
|
inlineexplicit |
Constructor for an empty set of \(t\) lacunary indices.
This constructor set the value of the indices to 0. To set indices, one should use either one [] or getLac, or the calcIndicesStreams() method.
References LatticeTester::CreateVect().
bool LatticeTester::Lacunary< BasInt >::calcIndicesStreams | ( | int | s, |
int | w, | ||
int | maxDim ) |
Fills the values of this object with maxDim indices starting from 0 by groups of \(s\), spaced apart by \(2^w\).
If \(w=0\), this is the case of non-lacunary indices. Returns true in the lacunary case, and false otherwise.
References LatticeTester::CreateVect(), LatticeTester::DeleteVect(), and NTL::power2().
|
inline |
Returns a reference to the value of m_lac[i].
(m_lac is the underlying vector storing the set of indices.)
std::string LatticeTester::Lacunary< BasInt >::toString | ( | ) | const |
Returns a string that describes this object.
This string will contain the dimension and all the indices stored.