CHROMA
unprec_one_flavor_ratio_rat_conv_monomial_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief One-flavor collection of unpreconditioned 4D ferm monomials
4  */
5 
6 #ifndef __unprec_one_flavor_ratio_rat_conv_monomial_w_h__
7 #define __unprec_one_flavor_ratio_rat_conv_monomial_w_h__
8 
12 
13 namespace Chroma
14 {
15 
16  /*! @ingroup monomial */
17  namespace UnprecOneFlavorWilsonTypeFermRatioRatConvMonomialEnv
18  {
19  bool registerAll();
20  }
21 
22 
23  //! Wrapper class for 2-flavor unprec 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  protected:
44 
45  multi1d<T>& getPhi() {return phi;}
46  const multi1d<T>& getPhi() const {return phi;}
47 
48  //! Get at fermion action
50 
51  //! Get at fermion action
53 
54  //! Get parameters for the inverter
56  return actionInvParam_num;
57  }
58 
59  //! Get parameters for the inverter
61  return forceInvParam_num;
62  }
63 
64  //! Return number of roots in used
65  int getNPF() const {return num_pf;}
66 
67  //! Return the partial fraction expansion for the force calc
68  const RemezCoeff_t& getNumerFPFE() const {return fpfe_num;}
69 
70  //! Return the partial fraction expansion for the action calc
71  const RemezCoeff_t& getNumerSPFE() const {return spfe_num;}
72 
73  //! Return the partial fraction expansion for the heat-bath
74  const RemezCoeff_t& getNumerSIPFE() const {return sipfe_num;}
75 
76  private:
77  // Hide empty constructor and =
80 
81  // Pseudofermion field phi
82  multi1d<T> phi;
83 
84  // A handle for the UnprecWilsonFermAct
86 
87  // A handle for the UnprecWilsonFermAct
89 
90  // The parameters for the inversion
93 
94  // Number of pseudoferms
95  int num_pf;
96 
97  // Coefficients and roots of partial fractions
101  };
102 
103 } //end namespace chroma
104 
105 
106 #endif
Class for counted reference semantics.
Definition: handle.h:33
const multi1d< T > & getPhi() const
Accessor for pseudofermion (read only)
const WilsonTypeFermAct< T, P, Q > & getDenomFermAct() const
Get at fermion action.
const RemezCoeff_t & getNumerFPFE() const
Return the partial fraction expansion for the force calc.
void operator=(const UnprecOneFlavorWilsonTypeFermRatioRatConvMonomial &)
const RemezCoeff_t & getNumerSPFE() const
Return the partial fraction expansion for the action calc.
const WilsonTypeFermAct< T, P, Q > & getNumerFermAct() const
Get at fermion action.
const RemezCoeff_t & getNumerSIPFE() const
Return the partial fraction expansion for the heat-bath.
const GroupXML_t & getNumerActionInvParams() const
Get parameters for the inverter.
const GroupXML_t & getNumerForceInvParams() const
Get parameters for the inverter.
Wilson-like fermion actions.
Definition: fermact.orig.h:344
Field state.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
One-flavor ratio of determinants rational monomial params.
One flavor ratio of rational monomials using RHMC.
Hold group xml and type id.
Convenient structure to package Remez coeffs.
Definition: remez_coeff.h:19