LatMRG Online Documentation unknown
Tools to analyze the lattice structure of linear generators
Loading...
Searching...
No Matches
MWCComponent.h File Reference

Classes

class  LatMRG::MWCComponent< Int, Real >
 This class represents the lattice associated to a Multiply-with-carry (MWC) random number generator. More...

Namespaces

namespace  MWCEquiv
 Small functions that give the modulo and the coefficient of the LCG generator equivalent to a MWC generator with modulo b and coefficients e.
namespace  LatMRG
 This has to be redone in a way similar to Rank1Lattice.

Functions

template<typename Int>
Int MWCEquiv::LCGMod (const Int &b, const NTL::vector< Int > &e)
 Returns the modulo for an MWC with coefficients in e and modulo b.
template<typename Int>
NTL::vector< Int > MWCEquiv::LCGCoeff (const Int &b, const NTL::vector< Int > &e)
 Returns the coefficient a of the equivalent LCG for a MWC with coefficients in e and modulo b.