Bridge++
Ver. 2.0.2
|
#include <asolver_SAP.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 (AFopr_dd< AFIELD > *fopr, const block_index_t *block_index) | |
constructor. More... | |
~ASolver_SAP () | |
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 | 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_SAP" |
Protected Member Functions | |
ASolver_SAP () | |
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 |
unique_ptr< ASolver_SAP_MINRES< AFIELD > > | m_sap_minres |
int | m_Niter |
maximum iteration number. More... | |
real_t | m_Stop_cond |
stopping criterion (squared). More... | |
int | m_Nconv |
iteratoin number to calculate flop More... | |
const int | m_min_res_iter = 6 |
int | m_nconv |
to remember convergence iteration to provide flop count. More... | |
AFIELD | m_x |
working vectors. More... | |
AFIELD | m_r |
AFIELD | m_p |
Protected Attributes inherited from ASolver< AFIELD > | |
Bridge::VerboseLevel | m_vl |
Definition at line 29 of file asolver_SAP.h.
typedef AIndex_block_lex<real_t, AFIELD::IMPL> ASolver_SAP< AFIELD >::block_index_t |
Definition at line 33 of file asolver_SAP.h.
typedef AFIELD::real_t ASolver_SAP< AFIELD >::real_t |
Definition at line 32 of file asolver_SAP.h.
|
inlineprotected |
calling constructor without fermion operator is forbidden.
Definition at line 54 of file asolver_SAP.h.
|
inline |
constructor.
Definition at line 63 of file asolver_SAP.h.
|
inline |
destructor.
Definition at line 72 of file asolver_SAP.h.
const std::string ASolver_SAP< AField< double, QXS > >::class_name |
Definition at line 26 of file asolver_SAP.cpp.
const std::string ASolver_SAP< AField< float, QXS > >::class_name |
Definition at line 34 of file asolver_SAP.cpp.
|
virtual |
returns the floating point operation count.
Reimplemented from ASolver< AFIELD >.
Definition at line 186 of file asolver_SAP-tmpl.h.
|
inlinevirtual |
returns the pointer to the fermion operator.
Reimplemented from ASolver< AFIELD >.
Definition at line 84 of file asolver_SAP.h.
|
protected |
Definition at line 36 of file asolver_SAP-tmpl.h.
void ASolver_SAP< AFIELD >::set_parameters | ( | const int | Niter, |
const real_t | Stop_cond | ||
) |
setting parameters.
Definition at line 95 of file asolver_SAP-tmpl.h.
|
virtual |
setting parameters by a Parameter object.
Implements ASolver< AFIELD >.
Definition at line 67 of file asolver_SAP-tmpl.h.
|
virtual |
solver main.
Reimplemented from ASolver< AFIELD >.
Definition at line 115 of file asolver_SAP-tmpl.h.
|
protected |
Definition at line 58 of file asolver_SAP-tmpl.h.
|
static |
Definition at line 35 of file asolver_SAP.h.
|
protected |
Definition at line 39 of file asolver_SAP.h.
|
protected |
Definition at line 40 of file asolver_SAP.h.
|
protected |
Definition at line 47 of file asolver_SAP.h.
|
protected |
iteratoin number to calculate flop
Definition at line 45 of file asolver_SAP.h.
|
protected |
to remember convergence iteration to provide flop count.
Definition at line 51 of file asolver_SAP.h.
|
protected |
maximum iteration number.
Definition at line 43 of file asolver_SAP.h.
|
protected |
Definition at line 57 of file asolver_SAP.h.
|
protected |
Definition at line 57 of file asolver_SAP.h.
|
protected |
Definition at line 41 of file asolver_SAP.h.
|
protected |
stopping criterion (squared).
Definition at line 44 of file asolver_SAP.h.
|
protected |
working vectors.
Definition at line 57 of file asolver_SAP.h.