#include <Lattice_rng.h>
|
| GridBase * | Grid (void) const |
| int | generator_idx (int os, int is) |
| | GridParallelRNG (GridBase *grid) |
| template<class vobj, class distribution> |
| void | fill (Lattice< vobj > &l, std::vector< distribution > &dist) |
| void | SeedUniqueString (const std::string &s) |
| void | SeedFixedIntegers (const std::vector< int > &seeds, int britney=0) |
| void | Report () |
| uint32_t | GlobalU01 (int gsite) |
| void | GetState (std::vector< RngStateType > &saved, RngEngine &eng) |
| void | GetState (std::vector< RngStateType > &saved, int gen) |
| void | SetState (std::vector< RngStateType > &saved, RngEngine &eng) |
| void | SetState (std::vector< RngStateType > &saved, int gen) |
| void | SetEngine (RngEngine &Eng, int gen) |
| void | GetEngine (RngEngine &Eng, int gen) |
| template<class source> |
| void | Seed (source &src, int gen) |
|
| static RngEngine | Reseed (RngEngine &eng) |
| static RngEngine | Reseed (RngEngine &eng, std::vector< uint32_t > &newseed, std::uniform_int_distribution< uint32_t > &uid) |
|
| std::vector< RngEngine > | _generators |
| std::vector< std::uniform_real_distribution< RealD > > | _uniform |
| std::vector< std::normal_distribution< RealD > > | _gaussian |
| std::vector< std::discrete_distribution< int32_t > > | _bernoulli |
| std::vector< std::uniform_int_distribution< uint32_t > > | _uid |
Definition at line 346 of file Lattice_rng.h.
◆ GridParallelRNG()
| GridParallelRNG::GridParallelRNG |
( |
GridBase * | grid | ) |
|
|
inline |
◆ Grid()
| GridBase * GridParallelRNG::Grid |
( |
void | | ) |
const |
|
inline |
◆ generator_idx()
| int GridParallelRNG::generator_idx |
( |
int | os, |
|
|
int | is ) |
|
inline |
◆ fill()
template<class vobj, class distribution>
| void GridParallelRNG::fill |
( |
Lattice< vobj > & | l, |
|
|
std::vector< distribution > & | dist ) |
|
inline |
Definition at line 368 of file Lattice_rng.h.
References GridRNGbase::_generators, _grid, GridBase::_isCheckerBoarded, _time_counter, autoView, LatticeAccelerator< vobj >::Checkerboard(), CpuWrite, fill(), fillScalar(), generator_idx(), Lattice< vobj >::Grid(), merge(), pickCheckerboard(), RNGfillable_general(), thread_for, and usecond().
Referenced by bernoulli(), fill(), gaussian(), and random().
◆ SeedUniqueString()
| void GridParallelRNG::SeedUniqueString |
( |
const std::string & | s | ) |
|
|
inline |
◆ SeedFixedIntegers()
| void GridParallelRNG::SeedFixedIntegers |
( |
const std::vector< int > & | seeds, |
|
|
int | britney = 0 ) |
|
inline |
◆ Report()
| void GridParallelRNG::Report |
( |
| ) |
|
|
inline |
◆ GlobalU01()
| uint32_t GridParallelRNG::GlobalU01 |
( |
int | gsite | ) |
|
|
inline |
◆ Reseed() [1/2]
| RngEngine GridRNGbase::Reseed |
( |
RngEngine & | eng | ) |
|
|
inlinestaticinherited |
◆ Reseed() [2/2]
| RngEngine GridRNGbase::Reseed |
( |
RngEngine & | eng, |
|
|
std::vector< uint32_t > & | newseed, |
|
|
std::uniform_int_distribution< uint32_t > & | uid ) |
|
inlinestaticinherited |
◆ GetState() [1/2]
| void GridRNGbase::GetState |
( |
std::vector< RngStateType > & | saved, |
|
|
RngEngine & | eng ) |
|
inlineinherited |
◆ GetState() [2/2]
| void GridRNGbase::GetState |
( |
std::vector< RngStateType > & | saved, |
|
|
int | gen ) |
|
inlineinherited |
◆ SetState() [1/2]
| void GridRNGbase::SetState |
( |
std::vector< RngStateType > & | saved, |
|
|
RngEngine & | eng ) |
|
inlineinherited |
◆ SetState() [2/2]
| void GridRNGbase::SetState |
( |
std::vector< RngStateType > & | saved, |
|
|
int | gen ) |
|
inlineinherited |
◆ SetEngine()
| void GridRNGbase::SetEngine |
( |
RngEngine & | Eng, |
|
|
int | gen ) |
|
inlineinherited |
◆ GetEngine()
| void GridRNGbase::GetEngine |
( |
RngEngine & | Eng, |
|
|
int | gen ) |
|
inlineinherited |
◆ Seed()
template<class source>
| void GridRNGbase::Seed |
( |
source & | src, |
|
|
int | gen ) |
|
inlineinherited |
◆ _time_counter
| double GridParallelRNG::_time_counter |
|
private |
◆ _grid
◆ _vol
| unsigned int GridParallelRNG::_vol |
|
private |
◆ _generators
| std::vector<RngEngine> GridRNGbase::_generators |
|
inherited |
Definition at line 143 of file Lattice_rng.h.
Referenced by GridParallelRNG::fill(), GridSerialRNG::fill(), GridSerialRNG::fill(), GridSerialRNG::fill(), GridSerialRNG::fill(), GridSerialRNG::fill(), GridSerialRNG::fill(), GridSerialRNG::fill(), GridSerialRNG::fill(), GridSerialRNG::fill(), GetEngine(), GetState(), GridParallelRNG::GlobalU01(), GridParallelRNG::GridParallelRNG(), GridSerialRNG::GridSerialRNG(), Seed(), SetEngine(), and SetState().
◆ _uniform
| std::vector<std::uniform_real_distribution<RealD> > GridRNGbase::_uniform |
|
inherited |
◆ _gaussian
| std::vector<std::normal_distribution<RealD> > GridRNGbase::_gaussian |
|
inherited |
◆ _bernoulli
| std::vector<std::discrete_distribution<int32_t> > GridRNGbase::_bernoulli |
|
inherited |
◆ _uid
| std::vector<std::uniform_int_distribution<uint32_t> > GridRNGbase::_uid |
|
inherited |
The documentation for this class was generated from the following file: