Class TempLat::RandomGaussian
template <typename T>
ClassList > TempLat > RandomGaussian
A gaussian random variable. Is aware of its own state and counts the number of values that have been returned. More...
#include <randomgaussian.h>
Public Types
| Type | Name |
|---|---|
| typedef INT | IntegerType |
Public Functions
| Type | Name |
|---|---|
| RandomGaussian (const std::string & seed) |
|
| DEVICE_INLINE_FUNCTION T | get (INT r, INT c, INT g) const |
| DEVICE_INLINE_FUNCTION auto | getPair (INT r, INT c, INT g, bool real=false, bool unitary=false) const |
| auto | getSeed () const |
| auto | getSeedString () const |
| void | loadState (const std::string & state) Restores Gaussian RNG state from a serialized string. |
| std::string | saveState () const Serializes the complete Gaussian RNG state to a string. |
Detailed Description
Unit test: ctest -R test-randomgaussian
Public Types Documentation
typedef IntegerType
Public Functions Documentation
function RandomGaussian
function get
function getPair
inline DEVICE_INLINE_FUNCTION auto TempLat::RandomGaussian::getPair (
INT r,
INT c,
INT g,
bool real=false,
bool unitary=false
) const
function getSeed
function getSeedString
function loadState
Restores Gaussian RNG state from a serialized string.
Parameters:
stateString produced by saveState()
function saveState
Serializes the complete Gaussian RNG state to a string.
Returns:
String containing underlying uniform RNG state, counter, and Box-Muller cache
Friends Documentation
friend operator<<
inline std::ostream & TempLat::RandomGaussian::operator<< (
std::ostream & ostream,
const RandomGaussian & pr
)
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/random/randomgaussian.h