15 #ifndef QMCPLUSPLUS_RANDOMSEQUENCEGENERATORGLOBAL_H 16 #define QMCPLUSPLUS_RANDOMSEQUENCEGENERATORGLOBAL_H 24 template<
typename T,
unsigned D>
31 template<
typename T,
unsigned D>
37 template<
typename T,
unsigned D>
49 template<
typename T,
unsigned D>
64 for (
int i = 0; i < a.size(); i++)
69 T x = 1.0 - 2.0 *
Random();
70 T y = 1.0 - 2.0 *
Random();
71 T z = 1.0 - 2.0 *
Random();
88 for (
int i = 0; i < a.size(); i++)
93 T x = 1.0 - 2.0 *
Random();
94 T y = 1.0 - 2.0 *
Random();
void makeUniformRandom(ParticleAttrib< TinyVector< T, D >> &a)
helper functions for EinsplineSetBuilder
Attaches a unit to a Vector for IO.
void assignGaussRand(T *restrict a, unsigned n, RG &rng)
size_type size() const
return the current size
void makeSphereRandom(ParticleAttrib< TinyVector< T, 3 >> &a)
void makeGaussRandom(std::vector< TinyVector< T, D >> &a)
void assignUniformRand(T *restrict a, unsigned n, RG &rng)
MakeReturn< UnaryNode< FnSqrt, typename CreateLeaf< Vector< T1, C1 > >::Leaf_t > >::Expression_t sqrt(const Vector< T1, C1 > &l)
Declare a global Random Number Generator.