SUNphi  1.0
SUNphi::TrueRandomGenerator Class Reference

#include <TrueRandomGenerator.hpp>

Inheritance diagram for SUNphi::TrueRandomGenerator:
SUNphi::SingleInstance< TrueRandomGenerator >

Public Types

using ResultType = std::random_device::result_type
 Type returned.
 

Public Member Functions

 TrueRandomGenerator (int returningRank=Mpi::MASTER_RANK)
 Creates specifying the rank to be used for returning.
 
auto operator() ()
 Returns the inner generated value. More...
 

Private Attributes

int returningRank
 Rank of which the result is returning.
 

Detailed Description

Class which enables true random numbers

The random numbers are always generated on all nodes, but only the value on the given node is returned

Definition at line 23 of file TrueRandomGenerator.hpp.

Member Function Documentation

auto SUNphi::TrueRandomGenerator::operator() ( )
inline

Returns the inner generated value.

Draw the value on every node

Definition at line 43 of file TrueRandomGenerator.hpp.


The documentation for this class was generated from the following file: