Go to the documentation of this file.
34 err += params.
fetch_int(
"number_of_poles", Np);
35 err += params.
fetch_int(
"exponent_numerator", n_exp);
36 err += params.
fetch_int(
"exponent_denominator", d_exp);
39 err += params.
fetch_int(
"maximum_number_of_iteration", Niter);
40 err += params.
fetch_double(
"convergence_criterion_squared", Stop_cond);
69 const double x_min,
const double x_max,
70 const int Niter,
const double Stop_cond)
118 for (
int i = 0; i <
m_Np; i++) {
146 const int NinF = eta.
nin();
147 const int NvolF = eta.
nvol();
148 const int NexF = eta.
nex();
151 const int Nshift =
m_Np;
153 std::vector<Field> psi(Nshift);
155 for (
int i = 0; i < Nshift; ++i) {
156 psi[i].reset(NinF, NvolF, NexF);
171 for (
int i = 0; i < Nshift; ++i) {
175 axpy(force, 1.0, force1);
void set_string(const string &key, const string &value)
void set(const int jin, const int site, const int jex, double v)
void force_udiv_impl(Field_G &, const Field_F &)
void set_double(const string &key, const double value)
void force_udiv(Field &, const Field &)
void get_parameters(double &norm, std::vector< double > &res, std::vector< double > &pole)
void force_udiv1(Field &, const Field &, const Field &)
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
virtual void set_mode(std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
void copy(Field &y, const Field &x)
copy(y, x): y = x
void set_parameters(const Parameters ¶ms)
static const std::string class_name
std::vector< double > m_bl
int square_non_zero(const double v)
void set_parameters(const Parameters ¶ms)
int solver(const std::string &)
void force_core1(Field &, const Field &, const Field &)
std::vector< double > m_cl
static VerboseLevel set_verbose_level(const std::string &str)
int non_zero(const double v)
void set_int(const string &key, const int value)
virtual void force_udiv(Field &, const Field &)
void scal(Field &x, const double a)
scal(x, a): x = a * x
int fetch_string(const string &key, string &value) const
Wilson-type fermion field.
int fetch_double(const string &key, double &value) const
Bridge::VerboseLevel m_vl
void crucial(const char *format,...)
Container of Field-type object.
Multishift Conjugate Gradient solver.
Determionation of coefficients of rational approximation.
int fetch_int(const string &key, int &value) const
void general(const char *format,...)
void get_parameters(Parameters ¶ms) const
static std::string get_verbose_level(const VerboseLevel vl)