29 multi1d<LatticeInteger>
x(
Nd);
34 x[
mu ] = Layout::latticeCoordinate(
mu);
52 phases[0] = LatticeInteger(1);
53 phases[1] = where(
x[0] % 2 == 0, LatticeInteger(1), LatticeInteger(-1));
54 phases[2] = where( (
x[0]+
x[1] ) % 2 == 0, LatticeInteger(1), LatticeInteger(-1));
55 phases[3] = where( (
x[0]+
x[1]+
x[2] ) % 2 == 0, LatticeInteger(1), LatticeInteger(-1));
59 QDP_error_exit(
"Staggered phases only supported for Nd=4 just now: Nd = %d\n",
Nd);
72 multi1d<LatticeInteger>
x(
Nd);
77 x[
mu ] = Layout::latticeCoordinate(
mu);
82 phases[0] = where( ((
x[1]+
x[2]+
x[3])%2) == 0, LatticeInteger(1), LatticeInteger(-1));
83 phases[1] = where( ((
x[2] +
x[3])%2) == 0, LatticeInteger(1), LatticeInteger(-1));
84 phases[2] = where( (
x[3] % 2) == 0, LatticeInteger(1), LatticeInteger(-1) );
86 phases[3] = LatticeInteger(1);
90 QDP_error_exit(
"Staggered phases only supported for Nd=4 just now: Nd = %d\n",
Nd);
Primary include file for CHROMA library code.
static multi1d< LatticeInteger > phases
static const LatticeInteger & alpha(const int dim)
static const LatticeInteger & beta(const int dim)
static multi1d< LatticeInteger > phases
Asqtad Staggered-Dirac operator.
QDP_error_exit("too many BiCG iterations", n_count, rsd_sq, cp, c, re_rvr, im_rvr, re_a, im_a, re_b, im_b)