QDP++
QDP::RANNYU Namespace Reference

Classes

struct  RNGState_t
 Hold state and RNG. More...

Functions

double random ()
 The RNG. Has side effects.
void setrn (const multi1d< int > &iseed)
 Seed has been set by default - this allows one to override it.
multi1d< int > savern ()
 Recover the seed.
void random (RNGState_t &ran_state)
 The RNG, but packaging all the state with it. No side effects.

Function Documentation

◆ random() [1/2]

double QDP::RANNYU::random ( )

The RNG. Has side effects.

Definition at line 57 of file qdp_rannyu.cc.

◆ random() [2/2]

void QDP::RANNYU::random ( RNGState_t & ran_state)

The RNG, but packaging all the state with it. No side effects.

Definition at line 97 of file qdp_rannyu.cc.

References QDP::QDPIO::cerr, QDP::QDP_abort(), QDP::RANNYU::RNGState_t::ran, QDP::RANNYU::RNGState_t::seed, and QDP::multi1d< T >::size().

◆ savern()

multi1d< int > QDP::RANNYU::savern ( )

Recover the seed.

Definition at line 90 of file qdp_rannyu.cc.

◆ setrn()

void QDP::RANNYU::setrn ( const multi1d< int > & iseed)

Seed has been set by default - this allows one to override it.

Definition at line 77 of file qdp_rannyu.cc.

References QDP::QDPIO::cerr, QDP::QDP_abort(), and QDP::multi1d< T >::size().