CHROMA
const_gauge_monomial.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /*! \file
3  * \brief Generic gauge action monomial wrapper
4  */
5 
6 #ifndef __const_gaugeact_monomial_h__
7 #define __const_gaugeact_monomial_h__
8 
9 #include "chromabase.h"
11 
12 namespace Chroma
13 {
14  /*! @ingroup monomial */
15  namespace ConstGaugeMonomialEnv
16  {
17  extern const std::string name;
18  bool registerAll();
19  }
20 
21 
22  //! Wrapper class for gauge monomials
23  /*! @ingroup monomial
24  *
25  * Monomial is expected to be the same for these fermacts
26  */
28  public GaugeMonomial
29  {
30  public:
31  typedef multi1d<LatticeColorMatrix> P;
32  typedef multi1d<LatticeColorMatrix> Q;
33 
34  //! Construct out of a parameter struct. Check against the desired GaugeAct name
36 
37  //! Create a suitable state and compute F
38  void dsdq(P& F, const AbsFieldState<P,Q>& s)
39  {
41  ColorMatrix CF ;
42  for(int mu(0);mu<Nd;mu++){
43  CF=sum(F[mu])/toDouble(Layout::vol());F[mu]=CF;
44  }
45  }
46 
47  private:
48  // Hide empty constructor and =
51 
52  };
53 
54 
55 } //end namespace chroma
56 
57 #endif
Primary include file for CHROMA library code.
Abstract field state.
Definition: field_state.h:27
Wrapper class for gauge monomials.
void operator=(const ConstGaugeMonomial &)
void dsdq(P &F, const AbsFieldState< P, Q > &s)
Create a suitable state and compute F.
multi1d< LatticeColorMatrix > Q
multi1d< LatticeColorMatrix > P
ConstGaugeMonomial(const GaugeMonomialParams &param_)
Construct out of a parameter struct. Check against the desired GaugeAct name.
Wrapper class for gauge monomials.
void dsdq(P &F, const AbsFieldState< P, Q > &s)
Create a suitable state and compute F.
int mu
Definition: cool.cc:24
Generic gauge action monomial wrapper.
Nd
Definition: meslate.cc:74
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
multi1d< LatticeFermion > s(Ncb)
::std::string string
Definition: gtest.h:1979
Double sum
Definition: qtopcor.cc:37
static INTERNAL_PRECISION F