8 #ifndef LAT_COL_MAT_HMC_NEW_H
9 #define LAT_COL_MAT_HMC_NEW_H
29 multi1d<LatticeColorMatrix> >
77 s.getP()[
mu] *= sqrt(Real(0.5));
89 multi1d<LatticeColorMatrix>&
p =
s.getP();
96 const AbsFieldState<multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> >&
s,
97 const AbsFieldState<multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> >& s_old
100 multi1d<LatticeColorMatrix> DelQ(
Nd);
101 multi1d<LatticeColorMatrix> DelP(
Nd);
103 DelQ[
mu]=
s.getQ()[
mu] - s_old.getQ()[
mu];
104 DelP[
mu]=
s.getP()[
mu] - s_old.getP()[
mu];
107 deltaQ = sqrt(norm2(DelQ[0]));
108 deltaP = sqrt(norm2(DelP[0]));
110 deltaQ += sqrt(norm2(DelQ[
mu]));
111 deltaP += sqrt(norm2(DelP[
mu]));
Abstract HMC trajectory Using the new structure.
Primary include file for CHROMA library code.
New Abstract Hamiltonian.
New MD integrator interface.
Class for counted reference semantics.
AbsMDIntegrator< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & getMDIntegrator(void)
bool acceptReject(const Double &DeltaH) const
void refreshP(AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s) const
Handle< AbsHamiltonian< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > the_H_MC
LatColMatHMCTrj(Handle< AbsHamiltonian< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > &_H_MC, Handle< AbsMDIntegrator< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > &_MD_int)
Handle< AbsMDIntegrator< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > the_MD
AbsHamiltonian< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & getMCHamiltonian(void)
void flipMomenta(AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s) const
void reverseCheckMetrics(Double &deltaQ, Double &deltaP, const AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s, const AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s_old) const
void taproj(LatticeColorMatrix &a)
Take the traceless antihermitian projection of a color matrix.
bool globalMetropolisAcceptReject(const Double &DeltaH)
Class for counted reference semantics.
Asqtad Staggered-Dirac operator.
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double
Take the traceless antihermitian projection of a color matrix.