Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Fopr_Chebyshev Class Reference

Chebyshev polynomial of fermion operator. More...

#include <fopr_Chebyshev.h>

Inheritance diagram for Fopr_Chebyshev:
Fopr

Public Member Functions

 Fopr_Chebyshev (Fopr *fopr)
 
 Fopr_Chebyshev (unique_ptr< Fopr > &fopr)
 
void set_parameters (const Parameters &params)
 
void set_parameters (const int Np, const double v_thrs, const double v_max)
 
void set_config (Field *U)
 setting pointer to the gauge configuration. More...
 
void set_config (unique_ptr< Field_G > &U)
 
void mult (Field &v, const Field &f)
 multiplies fermion operator to a given field (2nd argument) More...
 
void mult_dag (Field &v, const Field &f)
 hermitian conjugate of mult(Field&, const Field&). More...
 
double mult (const double)
 evaluate for a number More...
 
int field_nvol ()
 returns the volume for which the fermion operator is defined. More...
 
int field_nin ()
 returns the on-site d.o.f. for which the fermion operator is defined. More...
 
int field_nex ()
 returns the external d.o.f. for which the fermion operator is defined. More...
 
- Public Member Functions inherited from Fopr
 Fopr ()
 
virtual ~Fopr ()
 
void set_parameter_verboselevel (const Bridge::VerboseLevel vl)
 
virtual void mult_gm5 (Field &, const Field &)
 gamma_5 multiplication. [31 Mar 2017 H.Matsufuru] More...
 
virtual void mult (Field &, const Field &, const std::string mode)
 execute mult with specified mode (unchanging internal mode). [23 May 2016 H.Matsufuru]. More...
 
virtual void mult_dag (Field &, const Field &, const std::string mode)
 execute mult_dag with specified mode (unchanging internal mode). [23 May 2016 H.Matsufuru]. More...
 
virtual void mult_up (const int mu, Field &, const Field &)
 nearest neighbor hopping term: temporary entry [H.Matsufuru] More...
 
virtual void mult_dn (const int mu, Field &, const Field &)
 
virtual void set_mode (const 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
 only for Fopr_Overlap More...
 
virtual double flop_count ()
 returns the flop in giga unit More...
 
virtual double flop_count (const std::string mode)
 returns the flop in giga unit for a specified mode. [23 May 2016 H.Matsufuru] More...
 

Static Public Attributes

static const std::string class_name = "Fopr_Chebyshev"
 

Private Attributes

int m_Npcb
 
double m_Fcb1
 
double m_Fcb2
 
Foprm_fopr
 

Additional Inherited Members

- Protected Attributes inherited from Fopr
Bridge::VerboseLevel m_vl
 

Detailed Description

Chebyshev polynomial of fermion operator.

This class implements Chebyshev polynomial of a given fermion operator by making use of Clenshow's reccurence formula. The present version is just a rough implementation which assumes to be used accelerate eigenvalue solver. 24 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 fopr_Chebyshev.h.

Constructor & Destructor Documentation

Fopr_Chebyshev::Fopr_Chebyshev ( Fopr fopr)
inline

Definition at line 53 of file fopr_Chebyshev.h.

Fopr_Chebyshev::Fopr_Chebyshev ( unique_ptr< Fopr > &  fopr)
inline

Definition at line 56 of file fopr_Chebyshev.h.

Member Function Documentation

int Fopr_Chebyshev::field_nex ( )
inlinevirtual

returns the external d.o.f. for which the fermion operator is defined.

Implements Fopr.

Definition at line 84 of file fopr_Chebyshev.h.

int Fopr_Chebyshev::field_nin ( )
inlinevirtual

returns the on-site d.o.f. for which the fermion operator is defined.

Implements Fopr.

Definition at line 83 of file fopr_Chebyshev.h.

int Fopr_Chebyshev::field_nvol ( )
inlinevirtual

returns the volume for which the fermion operator is defined.

Implements Fopr.

Definition at line 82 of file fopr_Chebyshev.h.

void Fopr_Chebyshev::mult ( Field ,
const Field  
)
virtual

multiplies fermion operator to a given field (2nd argument)

Implements Fopr.

Definition at line 86 of file fopr_Chebyshev.cpp.

double Fopr_Chebyshev::mult ( const double  x)

evaluate for a number

Definition at line 130 of file fopr_Chebyshev.cpp.

void Fopr_Chebyshev::mult_dag ( Field ,
const Field  
)
inlinevirtual

hermitian conjugate of mult(Field&, const Field&).

Reimplemented from Fopr.

Definition at line 74 of file fopr_Chebyshev.h.

void Fopr_Chebyshev::set_config ( Field )
inlinevirtual

setting pointer to the gauge configuration.

Implements Fopr.

Definition at line 62 of file fopr_Chebyshev.h.

void Fopr_Chebyshev::set_config ( unique_ptr< Field_G > &  U)
inlinevirtual

Implements Fopr.

Definition at line 67 of file fopr_Chebyshev.h.

void Fopr_Chebyshev::set_parameters ( const Parameters params)
virtual

Implements Fopr.

Definition at line 25 of file fopr_Chebyshev.cpp.

void Fopr_Chebyshev::set_parameters ( const int  Np,
const double  v_thrs,
const double  v_max 
)

Definition at line 51 of file fopr_Chebyshev.cpp.

Member Data Documentation

const std::string Fopr_Chebyshev::class_name = "Fopr_Chebyshev"
static

Definition at line 45 of file fopr_Chebyshev.h.

double Fopr_Chebyshev::m_Fcb1
private

Definition at line 49 of file fopr_Chebyshev.h.

double Fopr_Chebyshev::m_Fcb2
private

Definition at line 49 of file fopr_Chebyshev.h.

Fopr* Fopr_Chebyshev::m_fopr
private

Definition at line 50 of file fopr_Chebyshev.h.

int Fopr_Chebyshev::m_Npcb
private

Definition at line 48 of file fopr_Chebyshev.h.


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