LatMRG Guide  1.0
A software package to test and search for new linear congruential random number generators
MWCEquiv Namespace Reference

Small functions to 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 >
NTL::vector< Int > LCGCoeff (const Int &b, const NTL::vector< Int > &e)
 Returns the coefficient for an MWC with coefficients in e and modulo b. More...
 
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. More...
 

Detailed Description

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

Function Documentation

◆ LCGCoeff()

template<typename Int >
NTL::vector<Int> MWCEquiv::LCGCoeff ( const Int &  b,
const NTL::vector< Int > &  e 
)

Returns the coefficient for an MWC with coefficients in e and modulo b.

◆ 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.