CHROMA
eoprec_clover_extfield_fermact_w.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Even-odd preconditioned Clover fermion action with an external field
4  */
5 
6 #ifndef __prec_clover_extfield_fermact_w_h__
7 #define __prec_clover_extfield_fermact_w_h__
8 
12 
13 namespace Chroma
14 {
15  //! Name and registration
16  /*! \ingroup fermacts */
17  namespace EvenOddPrecCloverExtFieldFermActEnv
18  {
19  extern const std::string name;
20  bool registerAll();
21  }
22 
23 
24  //! Even-odd preconditioned Clover fermion action with an external field
25  /*! \ingroup fermacts
26  *
27  * Even-odd preconditioned clover fermion action with an external field
28  * Only defined on odd subset.
29  */
30 
32  multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> >
33  {
34  public:
35  // Typedefs to save typing
36  typedef LatticeFermion T;
37  typedef multi1d<LatticeColorMatrix> P;
38  typedef multi1d<LatticeColorMatrix> Q;
39 
40  //! General FermState
42  const CloverFermActParams& param_) :
43  cfs(cfs_), param(param_) {}
44 
45  //! Produce a linear operator for this action
47 
48  //! Produce the gamma_5 hermitian operator H_w
50  {
51  return new lgherm<LatticeFermion>(linOp(state));
52  }
53 
54  //! Destructor is automatic
56 
57  protected:
58  //! Hide Partial constructor
60 
61  //! Return the fermion BC object for this action
62  const CreateFermState<T,P,Q>& getCreateState() const {return *cfs;}
63 
64  //! Assignment
66 
67  private:
70  };
71 
72 } // End Namespace Chroma
73 
74 
75 #endif
Create a fermion connection state.
Definition: create_state.h:69
Even-odd preconditioned Clover fermion action with an external field.
LinearOperator< LatticeFermion > * hermitianLinOp(Handle< FermState< T, P, Q > > state) const
Produce the gamma_5 hermitian operator H_w.
EvenOddPrecLogDetLinearOperator< T, P, Q > * linOp(Handle< FermState< T, P, Q > > state) const
Produce a linear operator for this action.
EvenOddPrecCloverExtFieldFermAct(Handle< CreateFermState< T, P, Q > > cfs_, const CloverFermActParams &param_)
General FermState.
void operator=(const EvenOddPrecCloverExtFieldFermAct &a)
Assignment.
const CreateFermState< T, P, Q > & getCreateState() const
Return the fermion BC object for this action.
Even-odd preconditioned linear operator.
Even-odd preconditioned Wilson-like fermion action, specialised to clover like (gauge dependent diago...
Support class for fermion actions and linear operators.
Definition: state.h:94
Class for counted reference semantics.
Definition: handle.h:33
Gamma(5) hermitian linear operator.
Definition: lgherm_w.h:22
Parameters for Clover fermion action.
Even-odd const determinant Wilson-like fermact.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Complex a
Definition: invbicg.cc:95
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > state
Definition: pbg5p_w.cc:28
::std::string string
Definition: gtest.h:1979
Params for clover ferm acts.