45 LatticeColorMatrix& u_smear,
47 const Real& sm_fact,
const Real& BlkAccu,
53 u_smear =
u[
mu] * sm_fact;
78 LatticeColorMatrix u_unproj = adj(u_smear);
94 copymask(u_smear, lSFmask[
mu], LatticeReal(1));
95 copymask(u_unproj, lSFmask[
mu], LatticeReal(1));
100 Double old_tr =
sum(real(trace(u_smear * u_unproj))) / toDouble(Layout::vol()*Nc);
104 bool wrswitch =
false;
107 while ( toBool(conver > BlkAccu) && n_smr < BlkMax )
119 new_tr =
sum(real(trace(u_smear * u_unproj))) / toDouble(Layout::vol()*Nc);
122 QDPIO::cout <<
" BLOCK: " << n_smr <<
" old_tr= " << old_tr <<
" new_tr= " << new_tr;
125 conver = fabs((new_tr - old_tr) / old_tr);
Primary include file for CHROMA library code.
LatticeColorMatrix shift2(const LatticeColorMatrix &s1, int isign, int dir, int level)
A simple not-fancy power of 2 shift.
void APE_Smear(const multi1d< LatticeColorMatrix > &u, LatticeColorMatrix &u_smear, int mu, int bl_level, const Real &sm_fact, const Real &BlkAccu, int BlkMax, int j_decay)
Construct APE smeared links from:
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
void su3proj(LatticeColorMatrix &u, const LatticeColorMatrix &w, int su2_index)
void reunit(LatticeColorMatrixF3 &xa)
FloatingPoint< double > Double
copymask(lcoord, lbit, ltmp_1, REPLACE)
Reunitarize in place a color matrix to SU(N)
Project a GL(3,C) color matrix onto SU(3)