25 const int Nex = v.
nex();
26 const int Nvol = v.
nvol();
27 const int Nin = v.
nin();
29 const double RF2 = 1.0 / sqrt(2.0);
31 for (
int ex = 0; ex < Nex; ++ex) {
32 for (
int site = 0; site < Nvol; ++site) {
33 for (
int in = 0; in < Nin; ++in) {
34 double rn1 = v.
cmp(in, site, ex);
35 double rn2 = floor(2.0 * rn1);
36 double rn3 = (2.0 * rn2 - 1.0) * RF2;
38 v.
set(in, site, ex, rn3);
void set(const int jin, const int site, const int jex, double v)
virtual void uniform_lex_global(Field &)
uniform random number defined on global lattice.
Container of Field-type object.
double cmp(const int jin, const int site, const int jex) const
void set(Field &v)
setting a noise vector.
static const std::string class_name