Bridge++
Version 1.5.4
|
Fermion operator for rational approximation. More...
#include <fopr_Rational_SF.h>
Public Member Functions | |
Fopr_Rational_SF (Fopr *fopr) | |
Fopr_Rational_SF (unique_ptr< Fopr > &fopr) | |
~Fopr_Rational_SF () | |
void | set_parameters (const Parameters ¶ms) |
void | set_parameters (const int Np, const int n_exp, const int d_exp, const double x_min, const double x_max, const int Niter, const double Stop_cond) |
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) |
void | mult_dag (Field &v, const Field &f) |
hermitian conjugate of mult(Field&, const Field&). More... | |
double | func (const double x) |
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_Rational_SF" |
Private Member Functions | |
void | init_parameters () |
Private Attributes | |
int | m_Np |
int | m_n_exp |
int | m_d_exp |
double | m_x_min |
double | m_x_max |
int | m_Niter |
double | m_Stop_cond |
Fopr * | m_fopr |
Shiftsolver_CG * | m_solver |
double | m_a0 |
std::vector< double > | m_cl |
std::vector< double > | m_bl |
std::vector< Field > | m_xq |
Additional Inherited Members | |
Protected Attributes inherited from Fopr | |
Bridge::VerboseLevel | m_vl |
Fermion operator for rational approximation.
This class generates fermion operator with 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.
(Coding history will be recovered from trac.) YAML is implemented. [14 Nov 2012 Y.Namekawa] unique_ptr is introduced to avoid memory leaks [21 Mar 2015 Y.Namekawa]
Definition at line 43 of file fopr_Rational_SF.h.
|
inline |
Definition at line 64 of file fopr_Rational_SF.h.
|
inline |
Definition at line 67 of file fopr_Rational_SF.h.
|
inline |
Definition at line 70 of file fopr_Rational_SF.h.
|
inlinevirtual |
returns the external d.o.f. for which the fermion operator is defined.
Implements Fopr.
Definition at line 100 of file fopr_Rational_SF.h.
|
inlinevirtual |
returns the on-site d.o.f. for which the fermion operator is defined.
Implements Fopr.
Definition at line 99 of file fopr_Rational_SF.h.
|
inlinevirtual |
returns the volume for which the fermion operator is defined.
Implements Fopr.
Definition at line 98 of file fopr_Rational_SF.h.
double Fopr_Rational_SF::func | ( | const double | x | ) |
Definition at line 175 of file fopr_Rational_SF.cpp.
|
private |
Definition at line 100 of file fopr_Rational_SF.cpp.
A modification from the original funtion is:
Implements Fopr.
Definition at line 142 of file fopr_Rational_SF.cpp.
hermitian conjugate of mult(Field&, const Field&).
Reimplemented from Fopr.
Definition at line 91 of file fopr_Rational_SF.h.
|
inlinevirtual |
setting pointer to the gauge configuration.
Implements Fopr.
Definition at line 79 of file fopr_Rational_SF.h.
|
inlinevirtual |
Implements Fopr.
Definition at line 84 of file fopr_Rational_SF.h.
|
virtual |
Implements Fopr.
Definition at line 25 of file fopr_Rational_SF.cpp.
void Fopr_Rational_SF::set_parameters | ( | const int | Np, |
const int | n_exp, | ||
const int | d_exp, | ||
const double | x_min, | ||
const double | x_max, | ||
const int | Niter, | ||
const double | Stop_cond | ||
) |
Definition at line 57 of file fopr_Rational_SF.cpp.
|
static |
Definition at line 46 of file fopr_Rational_SF.h.
|
private |
Definition at line 58 of file fopr_Rational_SF.h.
|
private |
Definition at line 60 of file fopr_Rational_SF.h.
|
private |
Definition at line 59 of file fopr_Rational_SF.h.
|
private |
Definition at line 50 of file fopr_Rational_SF.h.
|
private |
Definition at line 55 of file fopr_Rational_SF.h.
|
private |
Definition at line 50 of file fopr_Rational_SF.h.
|
private |
Definition at line 52 of file fopr_Rational_SF.h.
|
private |
Definition at line 49 of file fopr_Rational_SF.h.
|
private |
Definition at line 56 of file fopr_Rational_SF.h.
|
private |
Definition at line 53 of file fopr_Rational_SF.h.
|
private |
Definition at line 51 of file fopr_Rational_SF.h.
|
private |
Definition at line 51 of file fopr_Rational_SF.h.
|
private |
Definition at line 61 of file fopr_Rational_SF.h.