Bridge++
Ver. 2.0.2
|
#include <asolver_CG.h>
Public Types | |
typedef AFIELD::real_t | real_t |
using | InitialGuess = typename ASolver< AFIELD >::InitialGuess |
Public Types inherited from ASolver< AFIELD > | |
enum | InitialGuess { RHS, GIVEN, ZERO } |
typedef AFIELD::real_t | real_t |
Public Member Functions | |
ASolver_CG (AFopr< AFIELD > *fopr) | |
constructor. More... | |
~ASolver_CG () | |
destructor. More... | |
void | set_parameters (const Parameters ¶ms) |
setting parameters by a Parameter object. More... | |
void | set_parameters (const int Niter, const real_t Stop_cond) |
setting parameters. More... | |
void | set_parameters (const int Niter, const real_t Stop_cond, const InitialGuess init_guess_mode) |
setting parameters. More... | |
void | set_init_mode (const InitialGuess init_guess) |
void | solve (AFIELD &xq, const AFIELD &b, int &nconv, real_t &diff) |
solver main. More... | |
AFopr< AFIELD > * | get_fopr () |
returns the pointer to the fermion operator. More... | |
double | flop_count () |
returns the floating point operation count. More... | |
const std::string | class_name |
const std::string | class_name |
Public Member Functions inherited from ASolver< AFIELD > | |
ASolver () | |
virtual | ~ASolver () |
void | set_parameter_verboselevel (const Bridge::VerboseLevel vl) |
virtual void | set_init_mode (const InitialGuess init_guess) |
Static Public Attributes | |
static const std::string | class_name = "ASolver_CG" |
Protected Member Functions | |
ASolver_CG () | |
calling constructor without fermion operator is forbidden. More... | |
void | init (void) |
void | tidyup (void) |
void | solve_CG_init (real_t &rrp, real_t &rr) |
void | solve_CG_step (real_t &rrp, real_t &rr) |
Protected Attributes | |
AFopr< AFIELD > * | m_fopr |
fermion operator. More... | |
int | m_Niter |
maximum iteration number. More... | |
real_t | m_Stop_cond |
stopping criterion (squared). More... | |
int | m_nconv |
to remember convergence iteration to provide flop count. More... | |
InitialGuess | m_initial_mode |
mode switch for initial guess More... | |
AFIELD | m_x |
working vectors. More... | |
AFIELD | m_r |
AFIELD | m_p |
AFIELD | m_s |
Protected Attributes inherited from ASolver< AFIELD > | |
Bridge::VerboseLevel | m_vl |
Definition at line 16 of file asolver_CG.h.
using ASolver_CG< AFIELD >::InitialGuess = typename ASolver<AFIELD>::InitialGuess |
Definition at line 22 of file asolver_CG.h.
typedef AFIELD::real_t ASolver_CG< AFIELD >::real_t |
Definition at line 19 of file asolver_CG.h.
|
inlineprotected |
calling constructor without fermion operator is forbidden.
Definition at line 38 of file asolver_CG.h.
|
inline |
constructor.
Definition at line 45 of file asolver_CG.h.
|
inline |
destructor.
Definition at line 53 of file asolver_CG.h.
const std::string ASolver_CG< AField< double, QXS > >::class_name |
Definition at line 23 of file asolver_CG.cpp.
const std::string ASolver_CG< AField< float, QXS > >::class_name |
Definition at line 37 of file asolver_CG.cpp.
|
virtual |
returns the floating point operation count.
Reimplemented from ASolver< AFIELD >.
Reimplemented in ASolver_CGNR< AFIELD >.
Definition at line 229 of file asolver_CG-tmpl.h.
|
inlinevirtual |
returns the pointer to the fermion operator.
Reimplemented from ASolver< AFIELD >.
Reimplemented in ASolver_CGNR< AFIELD >.
Definition at line 73 of file asolver_CG.h.
|
protected |
Definition at line 5 of file asolver_CG-tmpl.h.
|
inline |
Definition at line 64 of file asolver_CG.h.
void ASolver_CG< AFIELD >::set_parameters | ( | const int | Niter, |
const real_t | Stop_cond | ||
) |
setting parameters.
Definition at line 79 of file asolver_CG-tmpl.h.
void ASolver_CG< AFIELD >::set_parameters | ( | const int | Niter, |
const real_t | Stop_cond, | ||
const InitialGuess | init_guess_mode | ||
) |
setting parameters.
Definition at line 88 of file asolver_CG-tmpl.h.
|
virtual |
setting parameters by a Parameter object.
Implements ASolver< AFIELD >.
Reimplemented in ASolver_CGNR< AFIELD >.
Definition at line 35 of file asolver_CG-tmpl.h.
|
virtual |
solver main.
Reimplemented from ASolver< AFIELD >.
Reimplemented in ASolver_CGNR< AFIELD >.
Definition at line 110 of file asolver_CG-tmpl.h.
|
protected |
Definition at line 169 of file asolver_CG-tmpl.h.
|
protected |
Definition at line 204 of file asolver_CG-tmpl.h.
|
protected |
Definition at line 26 of file asolver_CG-tmpl.h.
|
static |
Definition at line 21 of file asolver_CG.h.
|
protected |
fermion operator.
Definition at line 26 of file asolver_CG.h.
|
protected |
mode switch for initial guess
Definition at line 35 of file asolver_CG.h.
|
protected |
to remember convergence iteration to provide flop count.
Definition at line 32 of file asolver_CG.h.
|
protected |
maximum iteration number.
Definition at line 28 of file asolver_CG.h.
|
protected |
Definition at line 41 of file asolver_CG.h.
|
protected |
Definition at line 41 of file asolver_CG.h.
|
protected |
Definition at line 41 of file asolver_CG.h.
|
protected |
stopping criterion (squared).
Definition at line 29 of file asolver_CG.h.
|
protected |
working vectors.
Definition at line 41 of file asolver_CG.h.