Lattice Tester Online Documentation 0.1.0-861
Software Package For Testing The Uniformity Of Integral Lattices In The Real Space
|
REMOVE! More...
#include <latticetester/Lacunary.h>
Public Member Functions | |
Lacunary (const IntVec &C, int64_t t) | |
Constructor for a set of \(t\) indices given in the vector C . | |
Lacunary (int64_t t=0) | |
Constructor of an empty set of \(t\) lacunary indices. | |
~Lacunary () | |
Destructor. | |
Int & | operator[] (int64_t i) |
Returns a reference to the value of m_lac[i] . | |
Int & | getLac (int64_t i) |
Calling the object.getLac(i) gives the same result than calling object[i] . | |
int64_t | getSize () const |
Returns the size of the set, that is the number of elements in the vector of indices. | |
bool | calcIndicesStreams (int64_t s, int64_t w, int64_t 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. | |
REMOVE!
This class represents a set of indices with lacunary values, usually with the values spaced in a certain systematic way (see calcIndicesStreams
). It is typically used by subclasses of IntLatticeExt
. The values of the lacunary indices are stored in a vector and can be accessed via the []
operator.
|
inline |
Constructor for a set of \(t\) indices given in the vector C
.
|
inlineexplicit |
Constructor of 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.
|
inline |
Destructor.
bool LatticeTester::Lacunary< Int >::calcIndicesStreams | ( | int64_t | s, |
int64_t | w, | ||
int64_t | maxDim ) |
Fills the values of this object with maxDim
indices starting from 0
by groups of \(s\), spaced apart by \(2^w\).
When \(w=0\), we have non-lacunary indices. Returns true
in the lacunary case, and false
otherwise.
|
inline |
Calling the object.getLac(i)
gives the same result than calling object[i]
.
|
inline |
Returns the size of the set, that is the number of elements in the vector of indices.
|
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< Int >::toString | ( | ) | const |
Returns a string that describes this object.
This string will contain the dimension and all the indices stored.