Bridge++  Ver. 2.0.2
Imp::Fopr_CloverTerm Class Reference

#include <fopr_CloverTerm_impl.h>

Inheritance diagram for Imp::Fopr_CloverTerm:
AFopr< Field >

Public Member Functions

DEPRECATED Fopr_CloverTerm ()
 
DEPRECATED Fopr_CloverTerm (const std::string repr)
 
 Fopr_CloverTerm (const Parameters &params)
 standard constructor for ver.2.0 and later. More...
 
 ~Fopr_CloverTerm ()
 
void set_parameters (const Parameters &params)
 sets parameters by a Parameter object: to be implemented in a subclass. More...
 
void set_parameters (const double kappa, const double cSW, const std::vector< int > bc)
 
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 set_mode (const std::string mode)
 setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call. More...
 
std::string get_mode () const
 
void mult (Field &v, const Field &f)
 multiplies fermion operator to a given field. More...
 
void mult_dag (Field &v, const Field &f)
 hermitian conjugate of mult. More...
 
void mult_sigmaF (Field &, const Field &)
 
void mult_gm5 (Field &v, const Field &w)
 multiplies gamma_5 matrix. More...
 
void mult_isigma (Field_F &, const Field_F &, const int mu, const int nu)
 
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...
 
double flop_count ()
 this returns the number of floating point operations. More...
 
- Public Member Functions inherited from AFopr< Field >
 AFopr ()
 
virtual ~AFopr ()
 
virtual std::string get_mode () const
 returns the current mult mode. More...
 
virtual void mult (Field &, const Field &, const std::string mode)
 executes mult with specified mode (unchanging internal mode). More...
 
virtual void mult_dag (Field &, const Field &, const std::string mode)
 executes mult_dag with specified mode (unchanging internal mode). More...
 
virtual void mult_up (int mu, Field &, const Field &)
 upward nearest neighbor hopping term. More...
 
virtual void mult_dn (int mu, Field &, const Field &)
 downward nearest neighbor hopping term. More...
 
virtual void normalize_fprop (Field &)
 normalize propagator if necessary (default: do nothing) More...
 
virtual void normalize_fopr (Field &)
 normalize propagator if necessary (default: do nothing) More...
 
virtual double flop_count (const std::string mode)
 returns the flops per site for specified mode. More...
 
virtual bool needs_convert ()
 returns true if additional field conversion is needed. More...
 
virtual void convert (Field &, const Field &)
 converts a Field object into other format if necessary. More...
 
virtual void reverse (Field &, const Field &)
 converts an alternative field to a Field object. More...
 

Static Public Attributes

static const std::string class_name = "Imp::Fopr_CloverTerm"
 

Private Member Functions

void init (const std::string repr)
 
void init (const Parameters &params)
 
void setup_gamma_matrices ()
 
void tidyup ()
 
void set_config_omp (Field *U)
 
void set_config_impl (Field *U)
 
void set_csw ()
 
void set_fieldstrength (Field_G &, const int, const int)
 
void gm5_dirac (Field &, const Field &)
 
void gm5_chiral (Field &, const Field &)
 
void mult_csw (Field &, const Field &)
 
void mult_csw_dirac (Field &, const Field &)
 
void mult_csw_chiral (Field &, const Field &)
 
void mult_csw_dirac (Field_F &, const Field_F &)
 
void mult_csw_chiral (Field_F &, const Field_F &)
 
int sg_index (const int mu, const int nu)
 

Private Attributes

Bridge::VerboseLevel m_vl
 
double m_kappa
 
double m_cSW
 
std::vector< int > m_boundary
 
std::string m_repr
 
std::string m_mode
 
int m_Nc
 
int m_Nd
 
int m_NinF
 
int m_Ndim
 
int m_Nvol
 
const Field_Gm_U
 pointer to gauge configuration. More...
 
ShiftField_lexm_shift
 
Staple_lex m_staple
 
Field_G m_Bx
 
Field_G m_By
 
Field_G m_Bz
 field strength (magnetic components) More...
 
Field_G m_Ex
 
Field_G m_Ey
 
Field_G m_Ez
 field strength (electric components) More...
 
Field_G m_Cup
 
Field_G m_Cdn
 
Field_G m_v1
 
Field_G m_v2
 working vectors More...
 
std::vector< GammaMatrixm_SG
 
GammaMatrix m_GM5
 

Additional Inherited Members

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

Detailed Description

Definition at line 55 of file fopr_CloverTerm_impl.h.

Constructor & Destructor Documentation

◆ Fopr_CloverTerm() [1/3]

DEPRECATED Imp::Fopr_CloverTerm::Fopr_CloverTerm ( )
inline

Definition at line 95 of file fopr_CloverTerm_impl.h.

◆ Fopr_CloverTerm() [2/3]

DEPRECATED Imp::Fopr_CloverTerm::Fopr_CloverTerm ( const std::string  repr)
inline

Definition at line 98 of file fopr_CloverTerm_impl.h.

◆ Fopr_CloverTerm() [3/3]

Imp::Fopr_CloverTerm::Fopr_CloverTerm ( const Parameters params)
inline

standard constructor for ver.2.0 and later.

Definition at line 101 of file fopr_CloverTerm_impl.h.

◆ ~Fopr_CloverTerm()

Imp::Fopr_CloverTerm::~Fopr_CloverTerm ( )
inline

Definition at line 103 of file fopr_CloverTerm_impl.h.

Member Function Documentation

◆ field_nex()

int Imp::Fopr_CloverTerm::field_nex ( )
inlinevirtual

returns the external degree of freedom of the fermion field.

Implements AFopr< Field >.

Definition at line 131 of file fopr_CloverTerm_impl.h.

◆ field_nin()

int Imp::Fopr_CloverTerm::field_nin ( )
inlinevirtual

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

Implements AFopr< Field >.

Definition at line 130 of file fopr_CloverTerm_impl.h.

◆ field_nvol()

int Imp::Fopr_CloverTerm::field_nvol ( )
inlinevirtual

returns the volume of the fermion field.

Implements AFopr< Field >.

Definition at line 129 of file fopr_CloverTerm_impl.h.

◆ flop_count()

double Imp::Fopr_CloverTerm::flop_count ( )
virtual

this returns the number of floating point operations.

Reimplemented from AFopr< Field >.

Definition at line 721 of file fopr_CloverTerm_impl.cpp.

◆ get_mode()

std::string Imp::Fopr_CloverTerm::get_mode ( ) const
inline

Definition at line 116 of file fopr_CloverTerm_impl.h.

◆ get_parameters()

void Imp::Fopr_CloverTerm::get_parameters ( Parameters params) const
virtual

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

Reimplemented from AFopr< Field >.

Definition at line 176 of file fopr_CloverTerm_impl.cpp.

◆ gm5_chiral()

void Imp::Fopr_CloverTerm::gm5_chiral ( Field w,
const Field f 
)
private

Definition at line 338 of file fopr_CloverTerm_impl.cpp.

◆ gm5_dirac()

void Imp::Fopr_CloverTerm::gm5_dirac ( Field w,
const Field f 
)
private

Definition at line 303 of file fopr_CloverTerm_impl.cpp.

◆ init() [1/2]

void Imp::Fopr_CloverTerm::init ( const Parameters params)
private

Definition at line 30 of file fopr_CloverTerm_impl.cpp.

◆ init() [2/2]

void Imp::Fopr_CloverTerm::init ( const std::string  repr)
private

Definition at line 78 of file fopr_CloverTerm_impl.cpp.

◆ mult()

void Imp::Fopr_CloverTerm::mult ( Field ,
const Field  
)
virtual

multiplies fermion operator to a given field.

Reimplemented from AFopr< Field >.

Definition at line 271 of file fopr_CloverTerm_impl.cpp.

◆ mult_csw()

void Imp::Fopr_CloverTerm::mult_csw ( Field v,
const Field w 
)
private

Definition at line 392 of file fopr_CloverTerm_impl.cpp.

◆ mult_csw_chiral() [1/2]

void Imp::Fopr_CloverTerm::mult_csw_chiral ( Field v,
const Field w 
)
private

Definition at line 544 of file fopr_CloverTerm_impl.cpp.

◆ mult_csw_chiral() [2/2]

void Imp::Fopr_CloverTerm::mult_csw_chiral ( Field_F ,
const Field_F  
)
private

◆ mult_csw_dirac() [1/2]

void Imp::Fopr_CloverTerm::mult_csw_dirac ( Field v,
const Field w 
)
private

Definition at line 406 of file fopr_CloverTerm_impl.cpp.

◆ mult_csw_dirac() [2/2]

void Imp::Fopr_CloverTerm::mult_csw_dirac ( Field_F ,
const Field_F  
)
private

◆ mult_dag()

void Imp::Fopr_CloverTerm::mult_dag ( Field ,
const Field  
)
virtual

hermitian conjugate of mult.

Reimplemented from AFopr< Field >.

Definition at line 285 of file fopr_CloverTerm_impl.cpp.

◆ mult_gm5()

void Imp::Fopr_CloverTerm::mult_gm5 ( Field ,
const Field  
)
virtual

multiplies gamma_5 matrix.

Reimplemented from AFopr< Field >.

Definition at line 292 of file fopr_CloverTerm_impl.cpp.

◆ mult_isigma()

void Imp::Fopr_CloverTerm::mult_isigma ( Field_F v,
const Field_F w,
const int  mu,
const int  nu 
)

Definition at line 373 of file fopr_CloverTerm_impl.cpp.

◆ mult_sigmaF()

void Imp::Fopr_CloverTerm::mult_sigmaF ( Field v,
const Field f 
)

Definition at line 382 of file fopr_CloverTerm_impl.cpp.

◆ set_config()

void Imp::Fopr_CloverTerm::set_config ( Field )
virtual

sets the gauge configuration.

Implements AFopr< Field >.

Definition at line 219 of file fopr_CloverTerm_impl.cpp.

◆ set_config_impl()

void Imp::Fopr_CloverTerm::set_config_impl ( Field U)
private

Definition at line 246 of file fopr_CloverTerm_impl.cpp.

◆ set_config_omp()

void Imp::Fopr_CloverTerm::set_config_omp ( Field U)
private

Definition at line 236 of file fopr_CloverTerm_impl.cpp.

◆ set_csw()

void Imp::Fopr_CloverTerm::set_csw ( )
private

Definition at line 681 of file fopr_CloverTerm_impl.cpp.

◆ set_fieldstrength()

void Imp::Fopr_CloverTerm::set_fieldstrength ( Field_G Fst,
const int  mu,
const int  nu 
)
private

Definition at line 693 of file fopr_CloverTerm_impl.cpp.

◆ set_mode()

void Imp::Fopr_CloverTerm::set_mode ( const std::string  mode)
virtual

setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelevant call.

Reimplemented from AFopr< Field >.

Definition at line 261 of file fopr_CloverTerm_impl.cpp.

◆ set_parameters() [1/2]

void Imp::Fopr_CloverTerm::set_parameters ( const double  kappa,
const double  cSW,
const std::vector< int >  bc 
)

Definition at line 150 of file fopr_CloverTerm_impl.cpp.

◆ set_parameters() [2/2]

void Imp::Fopr_CloverTerm::set_parameters ( const Parameters params)
virtual

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

Reimplemented from AFopr< Field >.

Definition at line 118 of file fopr_CloverTerm_impl.cpp.

◆ setup_gamma_matrices()

void Imp::Fopr_CloverTerm::setup_gamma_matrices ( )
private

Definition at line 188 of file fopr_CloverTerm_impl.cpp.

◆ sg_index()

int Imp::Fopr_CloverTerm::sg_index ( const int  mu,
const int  nu 
)
inlineprivate

Definition at line 164 of file fopr_CloverTerm_impl.h.

◆ tidyup()

void Imp::Fopr_CloverTerm::tidyup ( )
private

Definition at line 111 of file fopr_CloverTerm_impl.cpp.

Member Data Documentation

◆ class_name

const std::string Imp::Fopr_CloverTerm::class_name = "Imp::Fopr_CloverTerm"
static

Definition at line 58 of file fopr_CloverTerm_impl.h.

◆ m_boundary

std::vector<int> Imp::Fopr_CloverTerm::m_boundary
private

Definition at line 65 of file fopr_CloverTerm_impl.h.

◆ m_Bx

Field_G Imp::Fopr_CloverTerm::m_Bx
private

Definition at line 81 of file fopr_CloverTerm_impl.h.

◆ m_By

Field_G Imp::Fopr_CloverTerm::m_By
private

Definition at line 81 of file fopr_CloverTerm_impl.h.

◆ m_Bz

Field_G Imp::Fopr_CloverTerm::m_Bz
private

field strength (magnetic components)

Definition at line 81 of file fopr_CloverTerm_impl.h.

◆ m_Cdn

Field_G Imp::Fopr_CloverTerm::m_Cdn
private

Definition at line 87 of file fopr_CloverTerm_impl.h.

◆ m_cSW

double Imp::Fopr_CloverTerm::m_cSW
private

Definition at line 64 of file fopr_CloverTerm_impl.h.

◆ m_Cup

Field_G Imp::Fopr_CloverTerm::m_Cup
private

Definition at line 87 of file fopr_CloverTerm_impl.h.

◆ m_Ex

Field_G Imp::Fopr_CloverTerm::m_Ex
private

Definition at line 84 of file fopr_CloverTerm_impl.h.

◆ m_Ey

Field_G Imp::Fopr_CloverTerm::m_Ey
private

Definition at line 84 of file fopr_CloverTerm_impl.h.

◆ m_Ez

Field_G Imp::Fopr_CloverTerm::m_Ez
private

field strength (electric components)

Definition at line 84 of file fopr_CloverTerm_impl.h.

◆ m_GM5

GammaMatrix Imp::Fopr_CloverTerm::m_GM5
private

Definition at line 90 of file fopr_CloverTerm_impl.h.

◆ m_kappa

double Imp::Fopr_CloverTerm::m_kappa
private

Definition at line 63 of file fopr_CloverTerm_impl.h.

◆ m_mode

std::string Imp::Fopr_CloverTerm::m_mode
private

Definition at line 68 of file fopr_CloverTerm_impl.h.

◆ m_Nc

int Imp::Fopr_CloverTerm::m_Nc
private

Definition at line 73 of file fopr_CloverTerm_impl.h.

◆ m_Nd

int Imp::Fopr_CloverTerm::m_Nd
private

Definition at line 73 of file fopr_CloverTerm_impl.h.

◆ m_Ndim

int Imp::Fopr_CloverTerm::m_Ndim
private

Definition at line 73 of file fopr_CloverTerm_impl.h.

◆ m_NinF

int Imp::Fopr_CloverTerm::m_NinF
private

Definition at line 73 of file fopr_CloverTerm_impl.h.

◆ m_Nvol

int Imp::Fopr_CloverTerm::m_Nvol
private

Definition at line 74 of file fopr_CloverTerm_impl.h.

◆ m_repr

std::string Imp::Fopr_CloverTerm::m_repr
private

Definition at line 66 of file fopr_CloverTerm_impl.h.

◆ m_SG

std::vector<GammaMatrix> Imp::Fopr_CloverTerm::m_SG
private

Definition at line 89 of file fopr_CloverTerm_impl.h.

◆ m_shift

ShiftField_lex* Imp::Fopr_CloverTerm::m_shift
private

Definition at line 78 of file fopr_CloverTerm_impl.h.

◆ m_staple

Staple_lex Imp::Fopr_CloverTerm::m_staple
private

Definition at line 79 of file fopr_CloverTerm_impl.h.

◆ m_U

const Field_G* Imp::Fopr_CloverTerm::m_U
private

pointer to gauge configuration.

Definition at line 76 of file fopr_CloverTerm_impl.h.

◆ m_v1

Field_G Imp::Fopr_CloverTerm::m_v1
private

Definition at line 87 of file fopr_CloverTerm_impl.h.

◆ m_v2

Field_G Imp::Fopr_CloverTerm::m_v2
private

working vectors

Definition at line 87 of file fopr_CloverTerm_impl.h.

◆ m_vl

Bridge::VerboseLevel Imp::Fopr_CloverTerm::m_vl
private

Definition at line 61 of file fopr_CloverTerm_impl.h.


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