CHROMA
eoprec_constdet_one_flavor_ratio_rat_conv_monomial5d_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief One-flavor collection of even-odd preconditioned 5D ferm monomials
4  */
5 
6 #ifndef __prec_one_flavor_ratio_rat_conv_monomial5d_w_h__
7 #define __prec_one_flavor_ratio_rat_conv_monomial5d_w_h__
8 
12 
13 namespace Chroma
14 {
15 
16  /*! @ingroup monomial */
17  namespace EvenOddPrecConstDetOneFlavorWilsonTypeFermRatioRatRatMonomial5DEnv
18  {
19  bool registerAll();
20  }
21 
22 
23  //! Wrapper class for 5D 2-flavor even-odd prec ferm monomials
24  /*! @ingroup monomial
25  *
26  * Monomial is expected to be the same for these fermacts
27  */
30  multi1d<LatticeColorMatrix>,
31  multi1d<LatticeColorMatrix>,
32  LatticeFermion>
33  {
34  public:
35  // Typedefs to save typing
36  typedef LatticeFermion T;
37  typedef multi1d<LatticeColorMatrix> P;
38  typedef multi1d<LatticeColorMatrix> Q;
39 
40  // Construct out of a parameter struct. Check against the desired FermAct name
42 
43  //! Even even contribution (eg ln det Clover)
44  Double S_even_even(const AbsFieldState<multi1d<LatticeColorMatrix>,
45  multi1d<LatticeColorMatrix> >& s) {
46  return Double(0);
47  }
48 
49 
50  protected:
51 
52  //! Get at fermion action
54  return *fermact_num;
55  }
56 
57  //! Get at fermion action
59  return *fermact_den;
60  }
61 
62  //! Get parameters for the inverter
64  return actionInvParam_num;
65  }
66 
67  //! Get parameters for the inverter
69  return forceInvParam_num;
70  }
71 
72  //! Return number of roots in used
73  int getNPF() const {return num_pf;}
74 
75  //! Accessor for pseudofermion (read only)
76  const multi1d< multi1d<T> >& getPhi() const {return phi;}
77 
78  //! mutator for pseudofermion
79  multi1d< multi1d<T> >& getPhi() {return phi;}
80 
81  //! Return the partial fraction expansion for the force calc
82  const RemezCoeff_t& getNumerFPFE() const {return fpfe_num;}
83 
84  //! Return the partial fraction expansion for the action calc
85  const RemezCoeff_t& getNumerSPFE() const {return spfe_num;}
86 
87  //! Return the partial fraction expansion for the heat-bath
88  const RemezCoeff_t& getNumerSIPFE() const {return sipfe_num;}
89 
90  private:
91 
92  // Hide empty constructor and =
95 
96  // Pseudofermion field phi
97  multi1d< multi1d<T> > phi;
98 
99  // A handle for the EvenOddPrecConstDetWilsonFermAct
102 
103  // The parameters for the inversion
106 
107  // Number of nth-roots
108  int num_pf;
109 
110  // Coefficients and roots of partial fractions
114  };
115 
116 
117 } //end namespace chroma
118 
119 #endif
Abstract field state.
Definition: field_state.h:27
const RemezCoeff_t & getNumerSIPFE() const
Return the partial fraction expansion for the heat-bath.
const RemezCoeff_t & getNumerFPFE() const
Return the partial fraction expansion for the force calc.
Double S_even_even(const AbsFieldState< multi1d< LatticeColorMatrix >, multi1d< LatticeColorMatrix > > &s)
Even even contribution (eg ln det Clover)
const multi1d< multi1d< T > > & getPhi() const
Accessor for pseudofermion (read only)
const EvenOddPrecConstDetWilsonTypeFermAct5D< T, P, Q > & getNumerFermAct() const
Get at fermion action.
const EvenOddPrecConstDetWilsonTypeFermAct5D< T, P, Q > & getDenomFermAct() const
Get at fermion action.
void operator=(const EvenOddPrecConstDetOneFlavorWilsonTypeFermRatioRatConvMonomial5D &)
const RemezCoeff_t & getNumerSPFE() const
Return the partial fraction expansion for the action calc.
Even-odd preconditioned Wilson-like fermion actions including derivatives.
Class for counted reference semantics.
Definition: handle.h:33
Exact 1 flavor even-odd preconditioned fermact monomial living in extra dimensions.
Field state.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double
Definition: gtest.h:7351
One flavor ratio of rational monomials using RHMC.
One-flavor ratio of determinants rational monomial params.
Hold group xml and type id.
Convenient structure to package Remez coeffs.
Definition: remez_coeff.h:19