Bridge++  Ver. 2.0.2
AFopr_Rational< AFIELD > Class Template Reference

Fermion operator for rational approximation. More...

#include <afopr_Rational.h>

Inheritance diagram for AFopr_Rational< AFIELD >:
AFopr< AFIELD >

Public Types

typedef AFIELD::real_t real_t
 

Public Member Functions

 AFopr_Rational (AFopr< AFIELD > *fopr)
 
 AFopr_Rational (AFopr< AFIELD > *fopr, const Parameters &params)
 
 ~AFopr_Rational ()
 
void set_parameters (const Parameters &params)
 sets parameters by a Parameter object: to be implemented in a subclass. More...
 
void set_parameters (const int Np, const int n_exp, const int d_exp, const real_t x_min, const real_t x_max, const int Niter, const real_t Stop_cond)
 
void get_parameters (Parameters &params) const
 gets parameters by a Parameter object: to be implemented in a subclass. More...
 
void set_config (Field *U)
 sets the gauge configuration. More...
 
void mult (AFIELD &v, const AFIELD &f)
 multiplies fermion operator to a given field. More...
 
void mult_dag (AFIELD &v, const AFIELD &f)
 hermitian conjugate of mult. More...
 
real_t func (const real_t x)
 
int field_nvol ()
 returns the volume of the fermion field. More...
 
int field_nin ()
 returns the on-site degree of freedom of the fermion field. More...
 
int field_nex ()
 returns the external degree of freedom of the fermion field. More...
 
virtual bool needs_convert ()
 returns true if additional field conversion is needed. More...
 
virtual void convert (AFIELD &v, const Field &w)
 converts a Field object into other format if necessary. More...
 
virtual void reverse (Field &v, const AFIELD &w)
 reverses to a Field object from other format if necessary. More...
 
const std::string class_name
 
- Public Member Functions inherited from AFopr< AFIELD >
 AFopr ()
 
virtual ~AFopr ()
 
virtual void set_mode (std::string mode)
 setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call. More...
 
virtual std::string get_mode () const
 returns the current mult mode. More...
 
virtual void mult (AFIELD &, const AFIELD &, const std::string mode)
 executes mult with specified mode (unchanging internal mode). More...
 
virtual void mult_dag (AFIELD &, const AFIELD &, const std::string mode)
 executes mult_dag with specified mode (unchanging internal mode). More...
 
virtual void mult_gm5 (AFIELD &, const AFIELD &)
 multiplies gamma_5 matrix. More...
 
virtual void mult_up (int mu, AFIELD &, const AFIELD &)
 upward nearest neighbor hopping term. More...
 
virtual void mult_dn (int mu, AFIELD &, const AFIELD &)
 downward nearest neighbor hopping term. More...
 
virtual void normalize_fprop (AFIELD &)
 normalize propagator if necessary (default: do nothing) More...
 
virtual void normalize_fopr (AFIELD &)
 normalize propagator if necessary (default: do nothing) More...
 
virtual double flop_count ()
 returns the number of floating point operations. More...
 
virtual double flop_count (const std::string mode)
 returns the flops per site for specified mode. More...
 

Static Public Attributes

static const std::string class_name = "AFopr_Rational"
 

Private Member Functions

void init_parameters ()
 

Private Attributes

Bridge::VerboseLevel m_vl
 
int m_Np
 
int m_n_exp
 
int m_d_exp
 
real_t m_x_min
 
real_t m_x_max
 
int m_Niter
 
real_t m_Stop_cond
 
AFopr< AFIELD > * m_fopr
 
AShiftsolver_CG< AFIELD, AFopr< AFIELD > > * m_solver
 
real_t m_a0
 
std::vector< real_tm_cl
 
std::vector< real_tm_bl
 
std::vector< AFIELDm_xq
 

Additional Inherited Members

- Static Protected Attributes inherited from AFopr< AFIELD >
static const std::string class_name
 

Detailed Description

template<typename AFIELD>
class AFopr_Rational< AFIELD >

Fermion operator for rational approximation.

This class generates fermion operator with a rational approximation for a given fermion operator (given to the constructer). Shift-solver is used which is at present set to the CG solver explicitly. 05 Dec 2011 H.Matsufuru YAML is implemented. [14 Nov 2012 Y.Namekawa] unique_ptr is introduced to avoid memory leaks [21 Mar 2015 Y.Namekawa]

Definition at line 42 of file afopr_Rational.h.

Member Typedef Documentation

◆ real_t

template<typename AFIELD >
typedef AFIELD::real_t AFopr_Rational< AFIELD >::real_t

Definition at line 45 of file afopr_Rational.h.

Constructor & Destructor Documentation

◆ AFopr_Rational() [1/2]

template<typename AFIELD >
AFopr_Rational< AFIELD >::AFopr_Rational ( AFopr< AFIELD > *  fopr)
inline

Definition at line 66 of file afopr_Rational.h.

◆ AFopr_Rational() [2/2]

template<typename AFIELD >
AFopr_Rational< AFIELD >::AFopr_Rational ( AFopr< AFIELD > *  fopr,
const Parameters params 
)
inline

Definition at line 69 of file afopr_Rational.h.

◆ ~AFopr_Rational()

template<typename AFIELD >
AFopr_Rational< AFIELD >::~AFopr_Rational ( )
inline

Definition at line 75 of file afopr_Rational.h.

Member Function Documentation

◆ class_name()

const std::string AFopr_Rational< Field >::class_name

Definition at line 26 of file fopr_Rational.cpp.

◆ convert()

template<typename AFIELD >
virtual void AFopr_Rational< AFIELD >::convert ( AFIELD v,
const Field w 
)
inlinevirtual

converts a Field object into other format if necessary.

Reimplemented from AFopr< AFIELD >.

Definition at line 107 of file afopr_Rational.h.

◆ field_nex()

template<typename AFIELD >
int AFopr_Rational< AFIELD >::field_nex ( )
inlinevirtual

returns the external degree of freedom of the fermion field.

Implements AFopr< AFIELD >.

Definition at line 100 of file afopr_Rational.h.

◆ field_nin()

template<typename AFIELD >
int AFopr_Rational< AFIELD >::field_nin ( )
inlinevirtual

returns the on-site degree of freedom of the fermion field.

Implements AFopr< AFIELD >.

Definition at line 99 of file afopr_Rational.h.

◆ field_nvol()

template<typename AFIELD >
int AFopr_Rational< AFIELD >::field_nvol ( )
inlinevirtual

returns the volume of the fermion field.

Implements AFopr< AFIELD >.

Definition at line 98 of file afopr_Rational.h.

◆ func()

template<typename AFIELD >
AFIELD::real_t AFopr_Rational< AFIELD >::func ( const real_t  x)

Definition at line 214 of file afopr_Rational-tmpl.h.

◆ get_parameters()

template<typename AFIELD >
void AFopr_Rational< AFIELD >::get_parameters ( Parameters params) const
virtual

gets parameters by a Parameter object: to be implemented in a subclass.

Reimplemented from AFopr< AFIELD >.

Definition at line 66 of file afopr_Rational-tmpl.h.

◆ init_parameters()

template<typename AFIELD >
void AFopr_Rational< AFIELD >::init_parameters
private

Definition at line 136 of file afopr_Rational-tmpl.h.

◆ mult()

template<typename AFIELD >
void AFopr_Rational< AFIELD >::mult ( AFIELD ,
const AFIELD  
)
virtual

multiplies fermion operator to a given field.

Reimplemented from AFopr< AFIELD >.

Definition at line 180 of file afopr_Rational-tmpl.h.

◆ mult_dag()

template<typename AFIELD >
void AFopr_Rational< AFIELD >::mult_dag ( AFIELD ,
const AFIELD  
)
inlinevirtual

hermitian conjugate of mult.

Reimplemented from AFopr< AFIELD >.

Definition at line 91 of file afopr_Rational.h.

◆ needs_convert()

template<typename AFIELD >
virtual bool AFopr_Rational< AFIELD >::needs_convert ( )
inlinevirtual

returns true if additional field conversion is needed.

Reimplemented from AFopr< AFIELD >.

Definition at line 103 of file afopr_Rational.h.

◆ reverse()

template<typename AFIELD >
virtual void AFopr_Rational< AFIELD >::reverse ( Field v,
const AFIELD w 
)
inlinevirtual

reverses to a Field object from other format if necessary.

Reimplemented from AFopr< AFIELD >.

Definition at line 111 of file afopr_Rational.h.

◆ set_config()

template<typename AFIELD >
void AFopr_Rational< AFIELD >::set_config ( Field )
virtual

sets the gauge configuration.

Implements AFopr< AFIELD >.

Definition at line 129 of file afopr_Rational-tmpl.h.

◆ set_parameters() [1/2]

template<typename AFIELD >
void AFopr_Rational< AFIELD >::set_parameters ( const int  Np,
const int  n_exp,
const int  d_exp,
const real_t  x_min,
const real_t  x_max,
const int  Niter,
const real_t  Stop_cond 
)

Definition at line 82 of file afopr_Rational-tmpl.h.

◆ set_parameters() [2/2]

template<typename AFIELD >
void AFopr_Rational< AFIELD >::set_parameters ( const Parameters params)
virtual

sets parameters by a Parameter object: to be implemented in a subclass.

Reimplemented from AFopr< AFIELD >.

Definition at line 31 of file afopr_Rational-tmpl.h.

Member Data Documentation

◆ class_name

template<typename AFIELD >
const std::string AFopr_Rational< AFIELD >::class_name = "AFopr_Rational"
static

Definition at line 46 of file afopr_Rational.h.

◆ m_a0

template<typename AFIELD >
real_t AFopr_Rational< AFIELD >::m_a0
private

Definition at line 60 of file afopr_Rational.h.

◆ m_bl

template<typename AFIELD >
std::vector<real_t> AFopr_Rational< AFIELD >::m_bl
private

Definition at line 62 of file afopr_Rational.h.

◆ m_cl

template<typename AFIELD >
std::vector<real_t> AFopr_Rational< AFIELD >::m_cl
private

Definition at line 61 of file afopr_Rational.h.

◆ m_d_exp

template<typename AFIELD >
int AFopr_Rational< AFIELD >::m_d_exp
private

Definition at line 52 of file afopr_Rational.h.

◆ m_fopr

template<typename AFIELD >
AFopr<AFIELD>* AFopr_Rational< AFIELD >::m_fopr
private

Definition at line 57 of file afopr_Rational.h.

◆ m_n_exp

template<typename AFIELD >
int AFopr_Rational< AFIELD >::m_n_exp
private

Definition at line 52 of file afopr_Rational.h.

◆ m_Niter

template<typename AFIELD >
int AFopr_Rational< AFIELD >::m_Niter
private

Definition at line 54 of file afopr_Rational.h.

◆ m_Np

template<typename AFIELD >
int AFopr_Rational< AFIELD >::m_Np
private

Definition at line 51 of file afopr_Rational.h.

◆ m_solver

template<typename AFIELD >
AShiftsolver_CG<AFIELD, AFopr<AFIELD> >* AFopr_Rational< AFIELD >::m_solver
private

Definition at line 58 of file afopr_Rational.h.

◆ m_Stop_cond

template<typename AFIELD >
real_t AFopr_Rational< AFIELD >::m_Stop_cond
private

Definition at line 55 of file afopr_Rational.h.

◆ m_vl

template<typename AFIELD >
Bridge::VerboseLevel AFopr_Rational< AFIELD >::m_vl
private

Definition at line 49 of file afopr_Rational.h.

◆ m_x_max

template<typename AFIELD >
real_t AFopr_Rational< AFIELD >::m_x_max
private

Definition at line 53 of file afopr_Rational.h.

◆ m_x_min

template<typename AFIELD >
real_t AFopr_Rational< AFIELD >::m_x_min
private

Definition at line 53 of file afopr_Rational.h.

◆ m_xq

template<typename AFIELD >
std::vector<AFIELD> AFopr_Rational< AFIELD >::m_xq
private

Definition at line 63 of file afopr_Rational.h.


The documentation for this class was generated from the following files: