Bridge++  Ver. 1.1.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
smear_APE.h
Go to the documentation of this file.
1 
15 #ifndef SMEAR_APE_INCLUDED
16 #define SMEAR_APE_INCLUDED
17 
18 #include <valarray>
19 #include "smear.h"
20 #include "staples.h"
21 
22 #include "bridgeIO.h"
23 using Bridge::vout;
24 
25 //- parameters class
27 class Parameters_Smear_APE : virtual public Parameters
28 {
29  public:
31 };
32 //- end
33 
35 
50 class Smear_APE : public Smear
51 {
52  private:
53  int m_Ndim;
54  std::valarray<double> m_rho;
56 
57  public:
60  : Smear(),
61  m_Ndim(CommonParameters::Ndim()), m_rho(0.0, m_Ndim * m_Ndim),
62  m_proj(proj) {}
63 
66 
68  void set_parameters(const Parameters& params);
69 
71  void set_parameters(const double rho1);
72 
74  void set_parameters(const std::valarray<double>& rho);
75 
77  void smear(Field_G& Usmear, const Field_G& U);
78 
79  private:
81  void staple(Field_G&, const Field_G&, const Field_G&,
82  int mu, int nu);
83 };
84 #endif