21 const string str_vlevel = params.
get_string(
"verbose_level");
32 err += params.
fetch_int(
"number_of_poles", Np);
33 err += params.
fetch_int(
"exponent_numerator", n_exp);
34 err += params.
fetch_int(
"exponent_denominator", d_exp);
37 err += params.
fetch_int(
"maximum_number_of_iteration", Niter);
38 err += params.
fetch_double(
"convergence_criterion_squared", Stop_cond);
52 const double x_min,
const double x_max,
53 const int Niter,
const double Stop_cond)
101 for (
int i = 0; i <
m_Np; i++) {
129 const int NinF = eta.
nin();
130 const int NvolF = eta.
nvol();
131 const int NexF = eta.
nex();
134 const int Nshift =
m_Np;
136 std::vector<Field> psi(Nshift);
138 for (
int i = 0; i < Nshift; ++i) {
139 psi[i].reset(NinF, NvolF, NexF);
149 solver->
solve(psi,
m_cl, eta, Nconv, diff);
154 for (
int i = 0; i < Nshift; ++i) {
158 axpy(force, 1.0, force1);
void scal(Field &x, const double a)
scal(x, a): x = a * x
void get_parameters(double &norm, std::vector< double > &res, std::vector< double > &pole)
void set(const int jin, const int site, const int jex, double v)
void general(const char *format,...)
Bridge::VerboseLevel m_vl
void set_parameters(const Parameters ¶ms)
virtual void set_mode(const std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
int solver(const std::string &)
Container of Field-type object.
int fetch_double(const string &key, double &value) const
std::vector< double > m_bl
Multishift Conjugate Gradient solver.
void copy(Field &y, const Field &x)
copy(y, x): y = x
std::vector< double > m_cl
Wilson-type fermion field.
Determionation of coefficients of rational approximation.
int square_non_zero(const double v)
int fetch_int(const string &key, int &value) const
void force_core1(Field &, const Field &, const Field &)
static const std::string class_name
void force_udiv_impl(Field_G &, const Field_F &)
void axpy(Field &y, const double a, const Field &x)
axpy(y, a, x): y := a * x + y
virtual void force_udiv(Field &, const Field &)
void crucial(const char *format,...)
void force_udiv1(Field &, const Field &, const Field &)
int non_zero(const double v)
void force_udiv(Field &, const Field &)
void set_parameters(const Parameters ¶ms)
string get_string(const string &key) const
static VerboseLevel set_verbose_level(const std::string &str)
void solve(std::vector< Field > &solution, const std::vector< double > &shift, const Field &source, int &Nconv, double &diff)