19 #ifdef USE_FACTORY_AUTOREGISTER
21 bool init = Fopr_WilsonGeneral::register_factory();
64 }
else if (
m_mode ==
"Ddag") {
67 }
else if (
m_mode ==
"DdagD") {
70 }
else if (
m_mode ==
"DDdag") {
73 }
else if (
m_mode ==
"H") {
93 const string str_vlevel = params.
get_string(
"verbose_level");
98 double kappa_s, kappa_t;
103 err += params.
fetch_double(
"hopping_parameter_spatial", kappa_s);
104 err += params.
fetch_double(
"hopping_parameter_temporal", kappa_t);
105 err += params.
fetch_double(
"dispersion_parameter_spatial", nu_s);
106 err += params.
fetch_double(
"Wilson_parameter_spatial", r_s);
120 const double kappa_t,
123 const std::vector<int> bc)
131 for (
int mu = 0; mu <
m_Ndim; ++mu) {
137 assert(bc.size() ==
m_Ndim);
158 for (
int mu = 0; mu <
m_Ndim; ++mu) {
178 for (
int mu = 0; mu <
m_Ndim; ++mu) {
191 assert(v.
nex() == f.
nex());
192 assert(v.
nin() == f.
nin());
203 const int ex1,
const Field& v,
const int ex2,
const int ipm)
205 assert(ipm == 1 || ipm == -1);
214 }
else if (ipm == -1) {
260 for (
int ex = 0; ex < f.
nex(); ++ex) {
270 }
else if (mu == (
m_Ndim - 1)) {
271 for (
int ex = 0; ex < f.
nex(); ++ex) {
293 for (
int ex = 0; ex < f.
nex(); ++ex) {
302 }
else if (mu == (
m_Ndim - 1)) {
303 for (
int ex = 0; ex < f.
nex(); ++ex) {
333 int flop_per_site = Nc * Nd * 2 * 8 * (4 * Nc - 1);
335 flop_per_site += Nc * Nd * 2 * (4 * 3 + 4 * 2);
336 flop_per_site += Nc * Nd * 2 * 8;
337 flop_per_site += Nc * Nd * 2 * 2;
339 double gflop = flop_per_site * (Nvol * (NPE / 1.0e+9));
void(Fopr_WilsonGeneral::* m_mult_dag)(Field &, const Field &)
void scal(Field &x, const double a)
scal(x, a): x = a * x
void proj_chiral(Field &w, const int ex1, const Field &v, const int ex2, const int ipm)
void mult_Field_Gd(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
void mult_undef(Field &, const Field &f)
void set(const int jin, const int site, const int jex, double v)
void set_mode(const std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
void general(const char *format,...)
GammaMatrix get_GM(GMspecies spec)
static Bridge::VerboseLevel Vlevel()
void mult_up(const int mu, Field &w, const Field &f)
nearest neighbor hopping term: temporary entry [H.Matsufuru]
Container of Field-type object.
int fetch_double(const string &key, double &value) const
void init(const std::string repr)
void H(Field &w, const Field &f)
std::string get_mode() const
only for Fopr_Overlap
void addpart_ex(int ex, const Field &w, int exw)
Bridge::VerboseLevel m_vl
void set_parameters(const Parameters ¶ms)
Wilson-type fermion field.
void mult_GMproj2(Field_F &y, const int pm, const GammaMatrix &gm, const Field_F &x)
projection with gamma matrix: (1 gamma)
void mult_dn(const int mu, Field &w, const Field &f)
static const std::string class_name
std::vector< GammaMatrix > m_GM
const Field_F mult_gm5p(const int mu, const Field_F &w)
void DDdag(Field &w, const Field &f)
double flop_count()
this returns the number of floating point operations.
void backward(Field &, const Field &, const int mu)
void DdagD(Field &w, const Field &f)
void mult_Field_Gn(Field_F &y, const int ex, const Field_G &u, int ex1, const Field_F &x, int ex2)
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
void mult_gm5(Field &v, const Field &f)
gamma_5 multiplication. [31 Mar 2017 H.Matsufuru]
void crucial(const char *format,...)
void(Fopr_WilsonGeneral::* m_mult)(Field &, const Field &)
void mult_GM(Field_F &y, const GammaMatrix &gm, const Field_F &x)
gamma matrix multiplication
void Ddag(Field &w, const Field &f)
void D_ex(Field &v, const int ex1, const Field &f, const int ex2)
std::vector< int > m_boundary
void D(Field &v, const Field &f)
void setpart_ex(int ex, const Field &w, int exw)
string get_string(const string &key) const
int fetch_int_vector(const string &key, vector< int > &value) const
static VerboseLevel set_verbose_level(const std::string &str)
void forward(Field &, const Field &, const int mu)