Bridge++  Ver. 2.0.2
ASolver_SAP< AFIELD > Class Template Reference

#include <asolver_SAP.h>

Inheritance diagram for ASolver_SAP< AFIELD >:
ASolver< AFIELD >

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 &params)
 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_tm_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
 

Detailed Description

template<typename AFIELD>
class ASolver_SAP< AFIELD >

Definition at line 29 of file asolver_SAP.h.

Member Typedef Documentation

◆ block_index_t

template<typename AFIELD >
typedef AIndex_block_lex<real_t, AFIELD::IMPL> ASolver_SAP< AFIELD >::block_index_t

Definition at line 33 of file asolver_SAP.h.

◆ real_t

template<typename AFIELD >
typedef AFIELD::real_t ASolver_SAP< AFIELD >::real_t

Definition at line 32 of file asolver_SAP.h.

Constructor & Destructor Documentation

◆ ASolver_SAP() [1/2]

template<typename AFIELD >
ASolver_SAP< AFIELD >::ASolver_SAP ( )
inlineprotected

calling constructor without fermion operator is forbidden.

Definition at line 54 of file asolver_SAP.h.

◆ ASolver_SAP() [2/2]

template<typename AFIELD >
ASolver_SAP< AFIELD >::ASolver_SAP ( AFopr_dd< AFIELD > *  fopr,
const block_index_t block_index 
)
inline

constructor.

Definition at line 63 of file asolver_SAP.h.

◆ ~ASolver_SAP()

template<typename AFIELD >
ASolver_SAP< AFIELD >::~ASolver_SAP ( )
inline

destructor.

Definition at line 72 of file asolver_SAP.h.

Member Function Documentation

◆ class_name() [1/2]

const std::string ASolver_SAP< AField< double, QXS > >::class_name

Definition at line 26 of file asolver_SAP.cpp.

◆ class_name() [2/2]

const std::string ASolver_SAP< AField< float, QXS > >::class_name

Definition at line 34 of file asolver_SAP.cpp.

◆ flop_count()

template<typename AFIELD >
double ASolver_SAP< AFIELD >::flop_count
virtual

returns the floating point operation count.

Reimplemented from ASolver< AFIELD >.

Definition at line 186 of file asolver_SAP-tmpl.h.

◆ get_fopr()

template<typename AFIELD >
AFopr<AFIELD>* ASolver_SAP< AFIELD >::get_fopr ( )
inlinevirtual

returns the pointer to the fermion operator.

Reimplemented from ASolver< AFIELD >.

Definition at line 84 of file asolver_SAP.h.

◆ init()

template<typename AFIELD >
void ASolver_SAP< AFIELD >::init ( void  )
protected

Definition at line 36 of file asolver_SAP-tmpl.h.

◆ set_parameters() [1/2]

template<typename AFIELD >
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.

◆ set_parameters() [2/2]

template<typename AFIELD >
void ASolver_SAP< AFIELD >::set_parameters ( const Parameters params)
virtual

setting parameters by a Parameter object.

Implements ASolver< AFIELD >.

Definition at line 67 of file asolver_SAP-tmpl.h.

◆ solve()

template<typename AFIELD >
void ASolver_SAP< AFIELD >::solve ( AFIELD xq,
const AFIELD b,
int &  nconv,
real_t diff 
)
virtual

solver main.

Reimplemented from ASolver< AFIELD >.

Definition at line 115 of file asolver_SAP-tmpl.h.

◆ tidyup()

template<typename AFIELD >
void ASolver_SAP< AFIELD >::tidyup ( void  )
protected

Definition at line 58 of file asolver_SAP-tmpl.h.

Member Data Documentation

◆ class_name

template<typename AFIELD >
const std::string ASolver_SAP< AFIELD >::class_name = "ASolver_SAP"
static

Definition at line 35 of file asolver_SAP.h.

◆ m_block_index

template<typename AFIELD >
const block_index_t* ASolver_SAP< AFIELD >::m_block_index
protected

Definition at line 39 of file asolver_SAP.h.

◆ m_fopr

template<typename AFIELD >
AFopr_dd<AFIELD>* ASolver_SAP< AFIELD >::m_fopr
protected

Definition at line 40 of file asolver_SAP.h.

◆ m_min_res_iter

template<typename AFIELD >
const int ASolver_SAP< AFIELD >::m_min_res_iter = 6
protected

Definition at line 47 of file asolver_SAP.h.

◆ m_Nconv

template<typename AFIELD >
int ASolver_SAP< AFIELD >::m_Nconv
protected

iteratoin number to calculate flop

Definition at line 45 of file asolver_SAP.h.

◆ m_nconv

template<typename AFIELD >
int ASolver_SAP< AFIELD >::m_nconv
protected

to remember convergence iteration to provide flop count.

Definition at line 51 of file asolver_SAP.h.

◆ m_Niter

template<typename AFIELD >
int ASolver_SAP< AFIELD >::m_Niter
protected

maximum iteration number.

Definition at line 43 of file asolver_SAP.h.

◆ m_p

template<typename AFIELD >
AFIELD ASolver_SAP< AFIELD >::m_p
protected

Definition at line 57 of file asolver_SAP.h.

◆ m_r

template<typename AFIELD >
AFIELD ASolver_SAP< AFIELD >::m_r
protected

Definition at line 57 of file asolver_SAP.h.

◆ m_sap_minres

template<typename AFIELD >
unique_ptr<ASolver_SAP_MINRES<AFIELD> > ASolver_SAP< AFIELD >::m_sap_minres
protected

Definition at line 41 of file asolver_SAP.h.

◆ m_Stop_cond

template<typename AFIELD >
real_t ASolver_SAP< AFIELD >::m_Stop_cond
protected

stopping criterion (squared).

Definition at line 44 of file asolver_SAP.h.

◆ m_x

template<typename AFIELD >
AFIELD ASolver_SAP< AFIELD >::m_x
protected

working vectors.

Definition at line 57 of file asolver_SAP.h.


The documentation for this class was generated from the following files: