8 #ifndef CONST_LAT_COL_MAT_HMC_NEW_H
9 #define CONST_LAT_COL_MAT_HMC_NEW_H
29 multi1d<LatticeColorMatrix> >
64 LatticeColorMatrix
P ;
73 s.getP()[
mu] =
sum(
P)/sqrt(toDouble(Layout::vol())) ;
81 s.getP()[
mu] *= sqrt(Real(0.5));
93 multi1d<LatticeColorMatrix>&
p =
s.getP();
100 const AbsFieldState<multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> >&
s,
101 const AbsFieldState<multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> >& s_old
104 multi1d<LatticeColorMatrix> DelQ(
Nd);
105 multi1d<LatticeColorMatrix> DelP(
Nd);
107 DelQ[
mu]=
s.getQ()[
mu] - s_old.getQ()[
mu];
108 DelP[
mu]=
s.getP()[
mu] - s_old.getP()[
mu];
111 deltaQ = sqrt(norm2(DelQ[0]));
112 deltaP = sqrt(norm2(DelP[0]));
114 deltaQ += sqrt(norm2(DelQ[
mu]));
115 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.
void flipMomenta(AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s) const
~ConstLatColMatHMCTrj(void)
ConstLatColMatHMCTrj(Handle< AbsHamiltonian< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > &_H_MC, Handle< AbsMDIntegrator< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > &_MD_int)
void refreshP(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
Handle< AbsHamiltonian< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > the_H_MC
Handle< AbsMDIntegrator< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > > the_MD
AbsMDIntegrator< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & getMDIntegrator(void)
bool acceptReject(const Double &DeltaH) const
AbsHamiltonian< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > & getMCHamiltonian(void)
Class for counted reference semantics.
void taproj(LatticeColorMatrix &a)
Take the traceless antihermitian projection of a color matrix.
bool globalMetropolisAcceptReject(const Double &DeltaH)
Class for counted reference semantics.
multi1d< LatticeColorMatrix > P
Asqtad Staggered-Dirac operator.
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double
multi1d< LatticeColorMatrix > P
Take the traceless antihermitian projection of a color matrix.