CHROMA
|
Solve a CG2 system. Here, the operator is NOT assumed to be hermitian. More...
#include <syssolver_mdagm_cg.h>
Public Member Functions | |
MdagMSysSolverCG (Handle< LinearOperator< T > > A_, const SysSolverCGParams &invParam_) | |
Constructor. More... | |
~MdagMSysSolverCG () | |
Destructor is automatic. More... | |
const Subset & | subset () const |
Return the subset on which the operator acts. More... | |
SystemSolverResults_t | operator() (T &psi, const T &chi) const |
Solver the linear system. More... | |
SystemSolverResults_t | operator() (T &psi, const T &chi, AbsChronologicalPredictor4D< T > &predictor) const |
Solve the linear system starting with a chrono guess. More... | |
Public Member Functions inherited from Chroma::SystemSolver< T > | |
virtual | ~SystemSolver () |
Virtual destructor to help with cleanup;. More... | |
Private Member Functions | |
MdagMSysSolverCG () | |
Private Attributes | |
Handle< LinearOperator< T > > | A |
SysSolverCGParams | invParam |
Solve a CG2 system. Here, the operator is NOT assumed to be hermitian.
Definition at line 34 of file syssolver_mdagm_cg.h.
|
inline |
Constructor.
M_ | Linear operator ( Read ) |
invParam | inverter parameters ( Read ) |
Definition at line 42 of file syssolver_mdagm_cg.h.
|
inline |
Destructor is automatic.
Definition at line 48 of file syssolver_mdagm_cg.h.
|
inlineprivate |
Definition at line 128 of file syssolver_mdagm_cg.h.
|
inlinevirtual |
Solver the linear system.
psi | solution ( Modify ) |
chi | source ( Read ) |
Implements Chroma::MdagMSystemSolver< T >.
Definition at line 59 of file syssolver_mdagm_cg.h.
References Chroma::MdagMSysSolverCG< T >::A, Chroma::chi(), Chroma::END_CODE(), Chroma::InvCG2(), Chroma::MdagMSysSolverCG< T >::invParam, Chroma::SysSolverCGParams::MaxCG, Chroma::SysSolverCGParams::MaxCGRestart, Chroma::MINUS, Chroma::n_count, Chroma::SystemSolverResults_t::n_count, Chroma::PLUS, Chroma::psi, Chroma::r, Chroma::SystemSolverResults_t::resid, Chroma::SysSolverCGParams::RsdCG, Chroma::SysSolverCGParams::RsdCGRestart, Chroma::START_CODE(), Chroma::tmp, and Chroma::zero.
|
inlinevirtual |
Solve the linear system starting with a chrono guess.
psi | solution (Write) |
chi | source (Read) |
predictor | a chronological predictor (Read) |
Implements Chroma::MdagMSystemSolver< T >.
Definition at line 105 of file syssolver_mdagm_cg.h.
References Chroma::MdagMSysSolverCG< T >::A, Chroma::chi(), Chroma::END_CODE(), MdagM, Chroma::AbsChronologicalPredictor4D< T >::newVector(), Chroma::psi, and Chroma::START_CODE().
|
inlinevirtual |
Return the subset on which the operator acts.
Implements Chroma::MdagMSystemSolver< T >.
Definition at line 51 of file syssolver_mdagm_cg.h.
References Chroma::MdagMSysSolverCG< T >::A.
|
private |
Definition at line 130 of file syssolver_mdagm_cg.h.
Referenced by Chroma::MdagMSysSolverCG< T >::operator()(), and Chroma::MdagMSysSolverCG< T >::subset().
|
private |
Definition at line 131 of file syssolver_mdagm_cg.h.
Referenced by Chroma::MdagMSysSolverCG< T >::operator()().