|
LatMRG Online Documentation unknown
Tools to analyze the lattice structure of linear generators
|
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. | |
Small functions that give the modulo and the coefficient of the LCG generator equivalent to a MWC generator with modulo b and coefficients e.
| 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.
| 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.