Lattice Builder Manual
Software Package for Constructing Rank-1 Lattices
|
Abstract CRTP base class for lattice size parameter. More...
#include <SizeParam.h>
Public Member Functions | |
BasicSizeParam (Modulus numPoints) | |
Modulus | numPoints () const |
operator Modulus () const | |
size_t | totient () const |
Returns the value of Euler's totient function. More... | |
template<class D > | |
bool | operator== (const BasicSizeParam< D > &other) const |
template<class D > | |
bool | operator!= (const BasicSizeParam< D > &other) const |
template<class D > | |
bool | operator< (const BasicSizeParam< D > &other) const |
void | normalize (Real &merit) const |
Divides the merit value merit by the number of points. | |
void | normalize (RealVector &merit) const |
Divides the each merit value in merit by the number of points. | |
Protected Member Functions | |
BasicSizeParam (const BasicSizeParam &)=default | |
Friends | |
template<class D > | |
std::ostream & | operator<< (std::ostream &, const BasicSizeParam< D > &) |
Abstract CRTP base class for lattice size parameter.
|
inline |
Returns the value of Euler's totient function.
It is the number of positive integers that are smaller than and coprime to the number of points.