Go to the documentation of this file.
15 template<
typename AFIELD>
96 static bool register_factory()
99 create_object_with_fopr);
105 #endif // ASOLVER_CG_H
AFIELD m_x
working vectors.
AFopr< AFIELD > * m_fopr
fermion operator.
int m_nconv
to remember convergence iteration to provide flop count.
void solve_CG_step(real_t &rrp, real_t &rr)
void set_parameters(const Parameters ¶ms)
setting parameters by a Parameter object.
void solve_CG_init(real_t &rrp, real_t &rr)
void solve(AFIELD &xq, const AFIELD &b, int &nconv, real_t &diff)
solver main.
int m_Niter
maximum iteration number.
void set_init_mode(const InitialGuess init_guess)
AFopr< AFIELD > * get_fopr()
returns the pointer to the fermion operator.
static const std::string class_name
ASolver_CG()
calling constructor without fermion operator is forbidden.
InitialGuess m_initial_mode
mode switch for initial guess
ASolver_CG(AFopr< AFIELD > *fopr)
constructor.
real_t m_Stop_cond
stopping criterion (squared).
double flop_count()
returns the floating point operation count.
typename ASolver< AFIELD >::InitialGuess InitialGuess
Container of Field-type object.