18 Real theta = twopiN * floor(N*rnd1);
20 return cmplx(cos(theta),sin(theta));
44 LatticeReal rnd1, theta;
47 LatticeColorVector colorvec =
zero;
49 for(
int spin_index= 0; spin_index < Ns; ++spin_index)
50 for(
int color_index= 0; color_index < Nc; ++color_index)
53 theta = twopiN * floor(N*rnd1);
54 c = cmplx(cos(theta),sin(theta));
56 colorvec = peekSpin(
a,spin_index);
58 pokeSpin(
a,pokeColor(colorvec,
c,color_index),spin_index);
Primary include file for CHROMA library code.
void zN_src(LatticeFermion &a, int N)
Volume source of Z(N) noise.
Complex zN_rng(int N)
Z(N)-rng.
Asqtad Staggered-Dirac operator.
Volume source of Z(N) noise.