15 namespace CharacterGaugeActEnv
48 XMLReader paramtop(xml_in, path);
57 QDPIO::cerr <<
"Error reading XML: " << e << std::endl;
67 multi2d<LatticeColorMatrix> plq;
83 LatticeComplex
plaq=trace(plq[
mu][
nu]);
86 act_A +=
sum(localNorm2(
plaq) - nine);
109 const multi1d<LatticeColorMatrix>&
u =
state->getLinks();
135 int mu,
int cb)
const
137 QDPIO::cerr << __func__ <<
": staple not possible\n";
148 LatticeColorMatrix
tmp_1;
149 LatticeColorMatrix
tmp_2;
151 const multi1d<LatticeColorMatrix>&
u =
state->getLinks();
152 multi1d<LatticeColorMatrix> deriv_fun(
Nd);
153 multi1d<LatticeColorMatrix> deriv_adj(
Nd);
154 multi1d<LatticeColorMatrix> deriv_sex(
Nd);
163 if (
mu ==
nu)
continue;
171 deriv_fun[
mu] += up_plq + down_plq ;
173 deriv_adj[
mu] += up_plq*conj(trace(up_plq)) +
174 down_plq*conj(trace(down_plq)) ;
176 deriv_sex[
mu] += up_plq*up_plq + down_plq*down_plq +
177 up_plq*trace(up_plq) +
178 down_plq*trace(down_plq) ;
gauge action as a sum of characters of the SU(3) irreps
Primary include file for CHROMA library code.
void staple(LatticeColorMatrix &result, const Handle< GaugeState< P, Q > > &state, int mu, int cb) const
Compute staple.
void deriv(multi1d< LatticeColorMatrix > &result, const Handle< GaugeState< P, Q > > &state) const
Compute dS/dU.
void siteAction(multi2d< LatticeColorMatrix > &site_act, const Handle< GaugeState< P, Q > > &state) const
Compute the site-level action.
Double S(const Handle< GaugeState< P, Q > > &state) const
Compute the actions.
Abstract base class for gauge actions.
virtual const GaugeBC< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & getGaugeBC() const
Return the gauge BC object for this action.
virtual void zero(P &ds_u) const =0
Zero some gauge-like field in place on the masked links.
Support class for fermion actions and linear operators.
Class for counted reference semantics.
All gauge create-state method.
Gauge create state factory.
Fermion action factories.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
GaugeAction< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > * createGaugeAct(XMLReader &xml, const std::string &path)
static bool registered
Local registration flag.
const std::string name
Name to be used.
bool registerAll()
Register all the factories.
Handle< CreateGaugeState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > reader(XMLReader &xml_in, const std::string &path)
Helper function for the CreateGaugeState readers.
Asqtad Staggered-Dirac operator.
static multi1d< LatticeColorMatrix > u
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
FloatingPoint< double > Double
Params()
Base Constructor.