QDP++
qdp_random.cc File Reference
#include "qdp.h"

Go to the source code of this file.

Namespaces

namespace  QDP
 Yet another random number generator.
namespace  QDP::RNG
 Random number generator namespace.

Functions

int QDP::RNG::numbits (int x)
 Find the number of bits required to represent x.
void QDP::RNG::initDefaultRNG ()
 Initialize the random number generator with a default seed.
void QDP::RNG::initRNG ()
 Initialize the internals of the random number generator.
void QDP::RNG::finalizeRNG ()
void QDP::RNG::setrn (const Seed &seed)
 Initialize the random number generator seed.
void QDP::RNG::savern (Seed &seed)
 Return a copy of the random number seed.
float QDP::RNG::sranf (Seed &seed, Seed &skewed_seed, const Seed &seed_mult)
 Scalar random number generator. Done on the front end. *‍/.
void QDP::RNG::sranf (float *d, int N, Seed &seed, ILatticeSeed &skewed_seed, const Seed &seed_mult)
 Scalar random number generator. Done on the front end. *‍/.

Variables

Seed QDP::RNG::ran_seed
 Global (current) seed.
Seed QDP::RNG::ran_mult
 RNG multiplier.
Seed QDP::RNG::ran_mult_n
 RNG multiplier raised to the volume+1.
LatticeSeedQDP::RNG::lattice_ran_mult
 The lattice of skewed RNG multipliers.