25 const LatticeColorMatrix& w,
40 multi1d<LatticeReal>
r(4);
47 r_l[mstag] = sqrt(
r[0]*
r[0] +
r[1]*
r[1] +
r[2]*
r[2] +
r[3]*
r[3]);
50 LatticeBoolean lbtmp =
false;
51 lbtmp[mstag] = r_l > fuzz;
52 LatticeReal lftmp = 1.0 / where(lbtmp, r_l, LatticeReal(1));
56 multi1d<LatticeReal>
a(4);
57 a[0] = where(lbtmp,
r[0] * lftmp, LatticeReal(1));
58 a[1] = where(lbtmp, -(
r[1] * lftmp), LatticeReal(0));
59 a[2] = where(lbtmp, -(
r[2] * lftmp), LatticeReal(0));
60 a[3] = where(lbtmp, -(
r[3] * lftmp), LatticeReal(0));
69 LatticeColorMatrix
tmp;
77 const LatticeColorMatrix& w,
84 const LatticeColorMatrix& w,
Primary include file for CHROMA library code.
void sunFill(LatticeColorMatrix &dest, const multi1d< LatticeReal > &r, int su2_index, const Subset &s)
Fill a dest(su2_index) <- r_0,r_1,r_2,r_3 under a subset.
void su2Extract(multi1d< LatticeReal > &r, const LatticeColorMatrix &source, int su2_index, const Subset &s)
Su2_extract: r_0,r_1,r_2,r_3 <- source(su2_index) [SU(N) field] under a subset.
Asqtad Staggered-Dirac operator.
void su3proj_t(LatticeColorMatrix &u, const LatticeColorMatrix &w, int su2_index, const S &mstag)
static multi1d< LatticeColorMatrix > u
void su3proj(LatticeColorMatrix &u, const LatticeColorMatrix &w, int su2_index)
Project a GL(3,C) color matrix onto SU(3)
Fill an SU(Nc) matrix with an SU(2) submatrix.