Bridge++  Ver. 1.3.x
fopr_Chebyshev.h
Go to the documentation of this file.
1 
15 #ifndef FOPR_CHEBYSHEV_INCLUDED
16 #define FOPR_CHEBYSHEV_INCLUDED
17 
18 #include "fopr.h"
19 #include "field_F.h"
20 #include "index_lex.h"
21 
22 #include "bridgeIO.h"
23 using Bridge::vout;
24 
26 
41 //- parameters class
42 class Parameters_Fopr_Chebyshev : virtual public Parameters
43 {
44  public:
46 };
47 //- end
48 
49 class Fopr_Chebyshev : public Fopr
50 {
51  public:
52  static const std::string class_name;
53 
54  private:
55  int m_Npcb;
56  double m_Fcb1, m_Fcb2;
58 
59  public:
61  : Fopr(), m_fopr(fopr) {}
62 
64  : Fopr(), m_fopr(fopr.get()) {}
65 
66  void set_parameters(const Parameters& params);
67  void set_parameters(int Np, double v_thrs, double v_max);
68 
69  void set_config(Field *U)
70  {
71  m_fopr->set_config(U);
72  }
73 
75  {
76  m_fopr->set_config(U.get());
77  }
78 
79  void mult(Field& v, const Field& f);
80 
81  void mult_dag(Field& v, const Field& f)
82  {
83  mult(v, f);
84  }
85 
87  double mult(double);
88 
89  int field_nvol() { return m_fopr->field_nvol(); }
90  int field_nin() { return m_fopr->field_nin(); }
91  int field_nex() { return m_fopr->field_nex(); }
92 };
93 #endif
BridgeIO vout
Definition: bridgeIO.cpp:278
int field_nin()
returns the on-site d.o.f. for which the fermion operator is defined.
Chebyshev polynomial of fermion operator.
virtual void set_config(Field *)=0
setting pointer to the gauge configuration.
Container of Field-type object.
Definition: field.h:39
Fopr_Chebyshev(Fopr *fopr)
int field_nex()
returns the external d.o.f. for which the fermion operator is defined.
void mult_dag(Field &v, const Field &f)
hermitian conjugate of mult(Field&, const Field&).
Class for parameters.
Definition: parameters.h:38
int field_nvol()
returns the volume for which the fermion operator is defined.
virtual int field_nin()=0
returns the on-site d.o.f. for which the fermion operator is defined.
void mult(Field &v, const Field &f)
multiplies fermion operator to a given field (2nd argument)
pointer get() const
virtual int field_nex()=0
returns the external d.o.f. for which the fermion operator is defined.
void set_config(Field *U)
setting pointer to the gauge configuration.
void set_config(unique_ptr< Field_G > &U)
void set_parameters(const Parameters &params)
static const std::string class_name
Fopr_Chebyshev(unique_ptr< Fopr > &fopr)
Base class of fermion operator family.
Definition: fopr.h:49
virtual int field_nvol()=0
returns the volume for which the fermion operator is defined.