|
Bridge++
Ver. 1.1.x
|
Base class of random number generators. More...
#include <randomNumbers.h>
Public Member Functions | |
| RandomNumbers () | |
| virtual | ~RandomNumbers () |
| void | set_parameter_verboselevel (const Bridge::VerboseLevel vl) |
| virtual double | get ()=0 |
| void | gauss (double &rn1, double &rn2) |
| void | uniform (Field &) |
| void | gauss (Field &) |
| void | gauss_lex_global (Field &) |
| gaussian random number defined on global lattice. More... | |
| void | gauss_eo_global (Field &) |
| gaussian noise for even-odd perconditioned field (S.UEDA) More... | |
| void | uniform_lex_global (Field &) |
| uniform random number defined on global lattice. More... | |
Protected Attributes | |
| Bridge::VerboseLevel | m_vl |
Base class of random number generators.
This class defines the interface of random number generator, and implements common methds. Practical methods to generate random numbers are defined in subclasses. This class also implements Gaussian random number and method to set a global field of Gaussian random numbers and cut it out to the local field for the own node (gauss_lex_global()) which is useful in HMC etc. [25 Dec 2011 H.Matsufuru]
Definition at line 40 of file randomNumbers.h.
|
inline |
Definition at line 47 of file randomNumbers.h.
|
inlinevirtual |
Definition at line 50 of file randomNumbers.h.
| void RandomNumbers::gauss | ( | double & | rn1, |
| double & | rn2 | ||
| ) |
Definition at line 35 of file randomNumbers.cpp.
| void RandomNumbers::gauss | ( | Field & | f | ) |
Definition at line 69 of file randomNumbers.cpp.
| void RandomNumbers::gauss_eo_global | ( | Field & | f | ) |
gaussian noise for even-odd perconditioned field (S.UEDA)
Definition at line 208 of file randomNumbers.cpp.
| void RandomNumbers::gauss_lex_global | ( | Field & | f | ) |
gaussian random number defined on global lattice.
Definition at line 104 of file randomNumbers.cpp.
|
pure virtual |
Implemented in RandomNumbers_Mseries, and RandomNumbers_MT19937.
|
inline |
Definition at line 52 of file randomNumbers.h.
| void RandomNumbers::uniform | ( | Field & | f | ) |
Definition at line 51 of file randomNumbers.cpp.
| void RandomNumbers::uniform_lex_global | ( | Field & | f | ) |
uniform random number defined on global lattice.
Definition at line 156 of file randomNumbers.cpp.
|
protected |
Definition at line 43 of file randomNumbers.h.