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

#include <asolver_SAP_QWS.h>

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

Public Types

typedef AFIELD::real_t real_t
 
- Public Types inherited from ASolver< AFIELD >
enum  InitialGuess { RHS, GIVEN, ZERO }
 
typedef AFIELD::real_t real_t
 

Public Member Functions

 ASolver_SAP_QWS (AFopr_dd< AFIELD > *fopr)
 constructor. More...
 
 ~ASolver_SAP_QWS ()
 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...
 
- 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_QWS"
 

Protected Member Functions

 ASolver_SAP_QWS ()
 calling constructor without fermion operator is forbidden. More...
 
void init (void)
 
void tidyup (void)
 

Protected Attributes

AFopr_Clover_QWS_dd< AFIELD > * m_fopr
 
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...
 
double m_flop
 flop count More...
 
const int m_nm = 10
 fixted iteration for the inner jacobi iteration More...
 
int m_nconv
 to remember convergence iteration to provide flop count. More...
 
AFIELD m_x
 working vectors. More...
 
AFIELD m_r
 
AFIELD m_b
 
- Protected Attributes inherited from ASolver< AFIELD >
Bridge::VerboseLevel m_vl
 

Detailed Description

template<typename AFIELD>
class ASolver_SAP_QWS< AFIELD >

Definition at line 33 of file asolver_SAP_QWS.h.

Member Typedef Documentation

◆ real_t

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

Definition at line 36 of file asolver_SAP_QWS.h.

Constructor & Destructor Documentation

◆ ASolver_SAP_QWS() [1/2]

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

calling constructor without fermion operator is forbidden.

Definition at line 55 of file asolver_SAP_QWS.h.

◆ ASolver_SAP_QWS() [2/2]

template<typename AFIELD >
ASolver_SAP_QWS< AFIELD >::ASolver_SAP_QWS ( AFopr_dd< AFIELD > *  fopr)
inline

constructor.

Definition at line 66 of file asolver_SAP_QWS.h.

◆ ~ASolver_SAP_QWS()

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

destructor.

Definition at line 83 of file asolver_SAP_QWS.h.

Member Function Documentation

◆ flop_count()

template<typename AFIELD >
double ASolver_SAP_QWS< AFIELD >::flop_count ( )
virtual

returns the floating point operation count.

Reimplemented from ASolver< AFIELD >.

◆ get_fopr()

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

returns the pointer to the fermion operator.

Reimplemented from ASolver< AFIELD >.

Definition at line 95 of file asolver_SAP_QWS.h.

◆ init()

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

◆ set_parameters() [1/2]

template<typename AFIELD >
void ASolver_SAP_QWS< AFIELD >::set_parameters ( const int  Niter,
const real_t  Stop_cond 
)

setting parameters.

◆ set_parameters() [2/2]

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

setting parameters by a Parameter object.

Implements ASolver< AFIELD >.

◆ solve()

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

solver main.

Reimplemented from ASolver< AFIELD >.

◆ tidyup()

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

Member Data Documentation

◆ class_name

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

Definition at line 38 of file asolver_SAP_QWS.h.

◆ m_b

template<typename AFIELD >
AFIELD ASolver_SAP_QWS< AFIELD >::m_b
protected

Definition at line 58 of file asolver_SAP_QWS.h.

◆ m_flop

template<typename AFIELD >
double ASolver_SAP_QWS< AFIELD >::m_flop
protected

flop count

Definition at line 48 of file asolver_SAP_QWS.h.

◆ m_fopr

template<typename AFIELD >
AFopr_Clover_QWS_dd<AFIELD>* ASolver_SAP_QWS< AFIELD >::m_fopr
protected

Definition at line 43 of file asolver_SAP_QWS.h.

◆ m_Nconv

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

iteratoin number to calculate flop

Definition at line 47 of file asolver_SAP_QWS.h.

◆ m_nconv

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

to remember convergence iteration to provide flop count.

Definition at line 52 of file asolver_SAP_QWS.h.

◆ m_Niter

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

maximum iteration number.

Definition at line 45 of file asolver_SAP_QWS.h.

◆ m_nm

template<typename AFIELD >
const int ASolver_SAP_QWS< AFIELD >::m_nm = 10
protected

fixted iteration for the inner jacobi iteration

Definition at line 49 of file asolver_SAP_QWS.h.

◆ m_r

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

Definition at line 58 of file asolver_SAP_QWS.h.

◆ m_Stop_cond

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

stopping criterion (squared).

Definition at line 46 of file asolver_SAP_QWS.h.

◆ m_x

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

working vectors.

Definition at line 58 of file asolver_SAP_QWS.h.


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