CHROMA
eoprec_constdet_two_flavor_polynomial_monomial_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! @file
3  * @brief Two-flavor collection of even-odd preconditioned 4D ferm monomials
4  */
5 
6 #ifndef __prec_two_flavor_polynomial_monomial_w_h__
7 #define __prec_two_flavor_polynomial_monomial_w_h__
8 
12 
13 namespace Chroma
14 {
15 
16  /*! @ingroup monomial */
17  namespace EvenOddPrecConstDetTwoFlavorPolynomialWilsonTypeFermMonomialEnv
18  {
19  bool registerAll();
20  }
21 
22 
23  //! Wrapper class for 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  // Copy Constructor
45 
46  protected:
47 
48  T& getPhi(void) {
49  return phi;
50  }
51 
52  const T& getPhi(void) const {
53  return phi;
54  }
55 
57  return *fermact;
58  }
59 
60  //! Get parameters for the inverter
61  const GroupXML_t& getInvParams(void) const {
62  return inv_param;
63  }
64 
65  private:
66 
67  // Hide empty constructor and =
70 
71  // Pseudofermion field phi
72  T phi;
73 
74  // A handle for the EvenOddPrecWilsonFermAct
76 
77  // The parameters for the inversion
79  };
80 
81 
82 } //end namespace chroma
83 
84 #endif
void operator=(const EvenOddPrecConstDetTwoFlavorPolynomialWilsonTypeFermMonomial &)
const PolyWilsonTypeFermAct< T, P, Q > & getFermAct(void) const
Get at fermion action.
EvenOddPrecConstDetTwoFlavorPolynomialWilsonTypeFermMonomial(const EvenOddPrecConstDetTwoFlavorPolynomialWilsonTypeFermMonomial &m)
const T & getPhi(void) const
Accessor for pseudofermion with Pf index i (read only)
Class for counted reference semantics.
Definition: handle.h:33
Polynomial Wilson-like fermion actions with derivatives.
Exact 2 degen flavor even-odd preconditioned fermact monomial.
Field state.
static int m[4]
Definition: make_seeds.cc:16
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Hold group xml and type id.
Two-flavor monomial params.