24 QDPIO::cerr << __func__ <<
": can only handle SU(2)" << std::endl;
32 multi1d<LatticeReal>
r(4);
40 LatticeReal r_l = sqrt(
r[1]*
r[1] +
r[2]*
r[2] +
r[3]*
r[3]);
43 LatticeBoolean lbtmp = r_l > fuzz;
44 LatticeReal lftmp = sin(r_l) / where(lbtmp, r_l, LatticeReal(1));
51 multi1d<LatticeReal>
a(4);
52 a[0] = where(lbtmp, cos(r_l), LatticeReal(1));
53 a[1] = where(lbtmp,
r[1] * lftmp, LatticeReal(0));
54 a[2] = where(lbtmp,
r[2] * lftmp, LatticeReal(0));
55 a[3] = where(lbtmp,
r[3] * lftmp, LatticeReal(0));
Primary include file for CHROMA library code.
Exactly exponentiate a SU(2) lie algebra element.
void eesu2(LatticeColorMatrix &m)
Exactly exponentiate a SU(2) lie algebra element.
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.
Fill an SU(Nc) matrix with an SU(2) submatrix.