LatMRG Online Documentation unknown
Tools to analyze the lattice structure of linear generators
Loading...
Searching...
No Matches
MWCEquiv Namespace Reference

Small functions that give the modulo and the coefficient of the LCG generator equivalent to a MWC generator with modulo b and coefficients e. More...

Functions

template<typename Int>
Int 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 > 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.

Detailed Description

Small functions that give the modulo and the coefficient of the LCG generator equivalent to a MWC generator with modulo b and coefficients e.

Function Documentation

◆ LCGMod()

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.

Returns m = sum_i e_i b^i.

◆ LCGCoeff()

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.