Bridge++
Ver. 2.0.2
|
#include <asolver_SAP_MINRES.h>
Public Types | |
typedef AFIELD::real_t | real_t |
typedef AIndex_block_lex< real_t, AFIELD::IMPL > | block_index_t |
Public Types inherited from ASolver< AFIELD > | |
enum | InitialGuess { RHS, GIVEN, ZERO } |
typedef AFIELD::real_t | real_t |
Public Member Functions | |
ASolver_SAP_MINRES (AFopr_dd< AFIELD > *fopr, const block_index_t *block_index) | |
constructor. More... | |
ASolver_SAP_MINRES (AFopr< AFIELD > *fopr) | |
~ASolver_SAP_MINRES () | |
destructor. More... | |
void | set_block (block_index_t *block_index) |
setting block. 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 | solve (AFIELD &xq, const AFIELD &b, int &nconv, real_t &diff, const int eo) |
solver main. More... | |
AFopr< AFIELD > * | get_afopr () |
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) |
virtual AFopr< AFIELD > * | get_fopr () |
virtual void | solve (AFIELD &x, const AFIELD &b, int &nconv, real_t &diff) |
Static Public Attributes | |
static const std::string | class_name = "ASolver_SAP_MINRES" |
Protected Types | |
using | complex_t = typename AFIELD::complex_t |
Protected Member Functions | |
ASolver_SAP_MINRES () | |
calling constructor without fermion operator is forbidden. More... | |
void | init (void) |
void | tidyup (void) |
Protected Attributes | |
const block_index_t * | m_block_index |
AFopr_dd< AFIELD > * | m_fopr |
need mult_sap() 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... | |
AFIELD | m_r |
working vectors. More... | |
AFIELD | m_p |
std::vector< real_t > | m_r2_block |
std::vector< real_t > | m_p2_block |
std::vector< complex_t > | m_alpha_block |
Protected Attributes inherited from ASolver< AFIELD > | |
Bridge::VerboseLevel | m_vl |
Private Member Functions | |
void | calc_flop_each () |
Private Attributes | |
double | m_flop_each |
Definition at line 26 of file asolver_SAP_MINRES.h.
typedef AIndex_block_lex<real_t, AFIELD::IMPL> ASolver_SAP_MINRES< AFIELD >::block_index_t |
Definition at line 30 of file asolver_SAP_MINRES.h.
|
protected |
Definition at line 52 of file asolver_SAP_MINRES.h.
typedef AFIELD::real_t ASolver_SAP_MINRES< AFIELD >::real_t |
Definition at line 29 of file asolver_SAP_MINRES.h.
|
inlineprotected |
calling constructor without fermion operator is forbidden.
Definition at line 47 of file asolver_SAP_MINRES.h.
|
inline |
constructor.
Definition at line 64 of file asolver_SAP_MINRES.h.
|
inline |
Definition at line 72 of file asolver_SAP_MINRES.h.
|
inline |
destructor.
Definition at line 82 of file asolver_SAP_MINRES.h.
|
private |
Definition at line 183 of file asolver_SAP_MINRES-tmpl.h.
const std::string ASolver_SAP_MINRES< AField< double, QXS > >::class_name |
Definition at line 42 of file asolver_SAP_MINRES_double.cpp.
const std::string ASolver_SAP_MINRES< AField< float, QXS > >::class_name |
Definition at line 42 of file asolver_SAP_MINRES_float.cpp.
|
virtual |
returns the floating point operation count.
Reimplemented from ASolver< AFIELD >.
Definition at line 175 of file asolver_SAP_MINRES-tmpl.h.
|
inline |
returns the pointer to the fermion operator.
Definition at line 101 of file asolver_SAP_MINRES.h.
|
protected |
Definition at line 18 of file asolver_SAP_MINRES-tmpl.h.
|
inline |
setting block.
Definition at line 85 of file asolver_SAP_MINRES.h.
void ASolver_SAP_MINRES< AFIELD >::set_parameters | ( | const int | Niter, |
const real_t | Stop_cond | ||
) |
setting parameters.
Definition at line 80 of file asolver_SAP_MINRES-tmpl.h.
|
virtual |
setting parameters by a Parameter object.
Implements ASolver< AFIELD >.
Definition at line 52 of file asolver_SAP_MINRES-tmpl.h.
void ASolver_SAP_MINRES< AFIELD >::solve | ( | AFIELD & | xq, |
const AFIELD & | b, | ||
int & | nconv, | ||
real_t & | diff, | ||
const int | eo | ||
) |
solver main.
Definition at line 99 of file asolver_SAP_MINRES-tmpl.h.
|
protected |
Definition at line 43 of file asolver_SAP_MINRES-tmpl.h.
|
static |
Definition at line 32 of file asolver_SAP_MINRES.h.
|
protected |
Definition at line 59 of file asolver_SAP_MINRES.h.
|
protected |
Definition at line 36 of file asolver_SAP_MINRES.h.
|
private |
Definition at line 115 of file asolver_SAP_MINRES.h.
|
protected |
need mult_sap()
Definition at line 38 of file asolver_SAP_MINRES.h.
|
protected |
to remember convergence iteration to provide flop count.
Definition at line 44 of file asolver_SAP_MINRES.h.
|
protected |
maximum iteration number.
Definition at line 40 of file asolver_SAP_MINRES.h.
|
protected |
Definition at line 50 of file asolver_SAP_MINRES.h.
|
protected |
Definition at line 58 of file asolver_SAP_MINRES.h.
|
protected |
working vectors.
Definition at line 50 of file asolver_SAP_MINRES.h.
|
protected |
Definition at line 57 of file asolver_SAP_MINRES.h.
|
protected |
stopping criterion (squared).
Definition at line 41 of file asolver_SAP_MINRES.h.