NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class represents a thread safe random number generator (it is a container for multiple generator instances, each for every possible OMP thread). More...
Public Member Functions | |
ThreadsafeRandGen () | |
Create an instance of this thread safe random number generator by filling the internal array with the number of maximal possible OMP threads. More... | |
std::mt19937 & | getGenerator () |
Returns an instance of a random number generator for the current thread. More... | |
Private Attributes | |
std::vector< std::mt19937 > | m_randGenArray |
This class represents a thread safe random number generator (it is a container for multiple generator instances, each for every possible OMP thread).
|
inline |
Create an instance of this thread safe random number generator by filling the internal array with the number of maximal possible OMP threads.
Definition at line 45 of file tools.cpp.
References m_randGenArray.
|
inline |
Returns an instance of a random number generator for the current thread.
Definition at line 62 of file tools.cpp.
References m_randGenArray.
Referenced by getRandGenInstance().
|
private |
Definition at line 36 of file tools.cpp.
Referenced by getGenerator(), and ThreadsafeRandGen().