LatMRG Guide
1.0
A software package to test and search for new linear congruential random number generators
|
This class is intended to store everything you might need after performing computations on a lattice. More...
#include <latmrg/FigureOfMerit.h>
Public Member Functions | |
FigureOfMerit () | |
FigureOfMerit (Lat &lattice, const Projections &proj) | |
Initializes the object for lattice and proj . More... | |
void | addMerit (std::vector< Dbl > &merits, std::vector< typename Lat::IntVec > &vectors) |
Sets m_merits to merits and m_vectors to vectors . More... | |
void | computeMerit (const std::string strat) |
Computes the minimum, if strat == "min" , or the maximum, if strat == "max" , of m_merits and stores it in m_merit . More... | |
bool | finished () |
Returns m_finished . More... | |
std::string | getLattice () |
Returns the string associated with this test. More... | |
Dbl | getMerit () |
Returns m_merit . More... | |
bool | operator!= (const FigureOfMerit< Lat > &right) |
Compares m_merit . More... | |
bool | operator< (const FigureOfMerit< Lat > &right) |
Compares m_merit . More... | |
bool | operator<= (const FigureOfMerit< Lat > &right) |
Compares m_merit . More... | |
bool | operator== (const FigureOfMerit< Lat > &right) |
Compares m_merit . More... | |
bool | operator> (const FigureOfMerit< Lat > &right) |
Compares m_merit . More... | |
bool | operator>= (const FigureOfMerit< Lat > &right) |
Compares m_merit . More... | |
void | setFinished () |
Sets finished to true . More... | |
std::string | toStringDim () |
Returns a string containing the merit of the generator for each dimension. More... | |
std::string | toStringMerit () |
Returns a string containing the merit of the generator, the projection for which this is obtained and the shortest vector for this projection. More... | |
std::string | toStringProjections () |
Returns a string that contains the merit for all projections and the shortest vector for all projections. More... | |
LatticeTester::Coordinates | worstProj () |
Lat::IntVec | worstVect () |
Returns the shortest vector in the lattice for the worst projection. More... | |
Private Types | |
typedef Lat::Float | Dbl |
typedef Lat::Integ | Int |
Private Attributes | |
long | m_best_worst |
Indice of the best or worst value in m_merits . More... | |
bool | m_finished |
true if this contains a merit value for all projections, false otherwise. More... | |
Lat | m_lattice |
The lattice that has been tested. More... | |
Dbl | m_merit |
The merit of the lattice. More... | |
std::vector< Dbl > | m_merits |
The merit for each test in the same sequence as the projections in m_projSet . More... | |
Projections | m_projSet |
The projections used in this object. More... | |
std::vector< typename Lat::IntVec > | m_vectors |
The shortest vectors for each projection in the same sequence as in m_projSet . More... | |
This class is intended to store everything you might need after performing computations on a lattice.
It is intended as a return type for functions actually performing the computations.
|
private |
|
private |
|
inline |
|
inline |
Initializes the object for lattice
and proj
.
This won't contain any merit value.
|
inline |
Sets m_merits
to merits
and m_vectors
to vectors
.
|
inline |
Computes the minimum, if strat == "min"
, or the maximum, if strat == "max"
, of m_merits
and stores it in m_merit
.
|
inline |
Returns m_finished
.
|
inline |
Returns the string associated with this test.
|
inline |
Returns m_merit
.
|
inline |
Compares m_merit
.
Uses operator==
.
|
inline |
Compares m_merit
.
"Implements" the comparison.
|
inline |
Compares m_merit
.
Uses operator>
.
|
inline |
Compares m_merit
.
"Implements" the comparison.
|
inline |
Compares m_merit
.
"Implements" the comparison.
|
inline |
Compares m_merit
.
Uses operator<
.
|
inline |
Sets finished to true
.
|
inline |
Returns a string containing the merit of the generator for each dimension.
This is, for each dimension, this will return the merit, worst projection and shortest vector for this projection. This may take some time because the merit is not pre computed for all projections.
|
inline |
Returns a string containing the merit of the generator, the projection for which this is obtained and the shortest vector for this projection.
|
inline |
Returns a string that contains the merit for all projections and the shortest vector for all projections.
This string is very long.
|
inline |
|
inline |
Returns the shortest vector in the lattice for the worst projection.
|
private |
Indice of the best or worst value in m_merits
.
|
private |
true
if this contains a merit value for all projections, false
otherwise.
|
private |
The lattice that has been tested.
|
private |
The merit of the lattice.
|
private |
The merit for each test in the same sequence as the projections in m_projSet
.
|
private |
The projections used in this object.
|
private |
The shortest vectors for each projection in the same sequence as in m_projSet
.