Grid 0.7.0
Lattice_rng.h File Reference
#include <random>

Go to the source code of this file.

Data Structures

class  GridRNGbase
class  GridSerialRNG
class  GridParallelRNG

Functions

 NAMESPACE_BEGIN (Grid)
int RNGfillable (GridBase *coarse, GridBase *fine)
int RNGfillable_general (GridBase *coarse, GridBase *fine)
template<class scalar, class distribution, class generator>
void fillScalar (scalar &s, distribution &dist, generator &gen)
template<class distribution, class generator>
void fillScalar (ComplexF &s, distribution &dist, generator &gen)
template<class distribution, class generator>
void fillScalar (ComplexD &s, distribution &dist, generator &gen)
template<class vobj>
void random (GridParallelRNG &rng, Lattice< vobj > &l)
template<class vobj>
void gaussian (GridParallelRNG &rng, Lattice< vobj > &l)
template<class vobj>
void bernoulli (GridParallelRNG &rng, Lattice< vobj > &l)
template<class sobj>
void random (GridSerialRNG &rng, sobj &l)
template<class sobj>
void gaussian (GridSerialRNG &rng, sobj &l)
template<class sobj>
void bernoulli (GridSerialRNG &rng, sobj &l)
 NAMESPACE_END (Grid)

Function Documentation

◆ NAMESPACE_BEGIN()

NAMESPACE_BEGIN ( Grid )

◆ RNGfillable()

int RNGfillable ( GridBase * coarse,
GridBase * fine )
inline

◆ RNGfillable_general()

int RNGfillable_general ( GridBase * coarse,
GridBase * fine )
inline

◆ fillScalar() [1/3]

template<class scalar, class distribution, class generator>
void fillScalar ( scalar & s,
distribution & dist,
generator & gen )

◆ fillScalar() [2/3]

template<class distribution, class generator>
void fillScalar ( ComplexF & s,
distribution & dist,
generator & gen )

Definition at line 109 of file Lattice_rng.h.

References generator().

◆ fillScalar() [3/3]

template<class distribution, class generator>
void fillScalar ( ComplexD & s,
distribution & dist,
generator & gen )

Definition at line 116 of file Lattice_rng.h.

References generator().

◆ random() [1/2]

◆ gaussian() [1/2]

template<class vobj>
void gaussian ( GridParallelRNG & rng,
Lattice< vobj > & l )
inline

Definition at line 533 of file Lattice_rng.h.

References GridRNGbase::_gaussian, and GridParallelRNG::fill().

Referenced by Aggregation< Fobj, CComplex, nbasis >::CreateSubspace(), Aggregation< Fobj, CComplex, nbasis >::CreateSubspaceChebyshev(), Aggregation< Fobj, CComplex, nbasis >::CreateSubspaceChebyshev(), Aggregation< Fobj, CComplex, nbasis >::CreateSubspaceChebyshevNew(), Aggregation< Fobj, CComplex, nbasis >::CreateSubspaceChebyshevPowerLaw(), Aggregation< Fobj, CComplex, nbasis >::CreateSubspaceGCR(), Aggregation< Fobj, CComplex, nbasis >::CreateSubspaceMultishift(), Aggregation< Fobj, CComplex, nbasis >::CreateSubspacePolyCheby(), Aggregation< Fobj, CComplex, nbasis >::CreateSubspaceRandom(), LatticeMatrix< ncolour, group_name >::GaussianFundamentalLieAlgebraMatrix(), ScalarImplTypes< vReal >::generate_momenta(), LatticeMatrix< ncolour, group_name >::HotConfiguration(), ScalarImplTypes< vReal >::HotConfiguration(), DomainDecomposedBoundaryTwoFlavourBosonPseudoFermion< ImplD, ImplF >::refresh(), DomainDecomposedBoundaryTwoFlavourPseudoFermion< ImplD, ImplF >::refresh(), DomainDecomposedBoundaryTwoFlavourRatioPseudoFermion< ImplD, ImplF >::refresh(), ExactOneFlavourRatioPseudoFermionAction< Impl >::refresh(), GeneralEvenOddRatioRationalPseudoFermionAction< Impl >::refresh(), OneFlavourEvenOddRationalPseudoFermionAction< Impl >::refresh(), OneFlavourRationalPseudoFermionAction< Impl >::refresh(), OneFlavourRatioRationalPseudoFermionAction< Impl >::refresh(), TwoFlavourEvenOddPseudoFermionAction< Impl >::refresh(), TwoFlavourEvenOddRatioPseudoFermionAction< Impl >::refresh(), TwoFlavourPseudoFermionAction< Impl >::refresh(), TwoFlavourRatioEO4DPseudoFermionAction< Impl >::refresh(), TwoFlavourRatioPseudoFermionAction< Impl >::refresh(), Photon< GImpl >::StochasticField(), and ScalarImplTypes< vReal >::TepidConfiguration().

◆ bernoulli() [1/2]

template<class vobj>
void bernoulli ( GridParallelRNG & rng,
Lattice< vobj > & l )
inline

Definition at line 534 of file Lattice_rng.h.

References GridRNGbase::_bernoulli, and GridParallelRNG::fill().

◆ random() [2/2]

template<class sobj>
void random ( GridSerialRNG & rng,
sobj & l )
inline

Definition at line 536 of file Lattice_rng.h.

References GridRNGbase::_uniform, and GridSerialRNG::fill().

◆ gaussian() [2/2]

template<class sobj>
void gaussian ( GridSerialRNG & rng,
sobj & l )
inline

Definition at line 537 of file Lattice_rng.h.

References GridRNGbase::_gaussian, and GridSerialRNG::fill().

◆ bernoulli() [2/2]

template<class sobj>
void bernoulli ( GridSerialRNG & rng,
sobj & l )
inline

Definition at line 538 of file Lattice_rng.h.

References GridRNGbase::_bernoulli, and GridSerialRNG::fill().

◆ NAMESPACE_END()

NAMESPACE_END ( Grid )