|
CHROMA
|
Solve a M*psi=chi linear system by CG2. More...
#include <syssolver_linop_cg_array.h>
Public Member Functions | |
| LinOpSysSolverCGArray (Handle< LinearOperatorArray< T > > A_, const SysSolverCGParams &invParam_) | |
| Constructor. More... | |
| ~LinOpSysSolverCGArray () | |
| Destructor is automatic. More... | |
| int | size () const |
| Expected length of array index. More... | |
| const Subset & | subset () const |
| Return the subset on which the operator acts. More... | |
| SystemSolverResults_t | operator() (multi1d< T > &psi, const multi1d< T > &chi) const |
| Solver the linear system. More... | |
Public Member Functions inherited from Chroma::SystemSolverArray< T > | |
| virtual | ~SystemSolverArray () |
| Virtual destructor to help with cleanup;. More... | |
Private Member Functions | |
| LinOpSysSolverCGArray () | |
Private Attributes | |
| Handle< LinearOperatorArray< T > > | A |
| SysSolverCGParams | invParam |
Solve a M*psi=chi linear system by CG2.
Definition at line 33 of file syssolver_linop_cg_array.h.
|
inline |
Constructor.
| M_ | Linear operator ( Read ) |
| invParam | inverter parameters ( Read ) |
Definition at line 41 of file syssolver_linop_cg_array.h.
|
inline |
Destructor is automatic.
Definition at line 47 of file syssolver_linop_cg_array.h.
|
inlineprivate |
Definition at line 93 of file syssolver_linop_cg_array.h.
|
inlinevirtual |
Solver the linear system.
| psi | solution ( Modify ) |
| chi | source ( Read ) |
Implements Chroma::SystemSolverArray< T >.
Definition at line 61 of file syssolver_linop_cg_array.h.
References Chroma::LinOpSysSolverCGArray< T >::A, Chroma::chi(), Chroma::END_CODE(), Chroma::InvCG2(), Chroma::LinOpSysSolverCGArray< T >::invParam, Chroma::SysSolverCGParams::MaxCG, Chroma::SysSolverCGParams::MaxCGRestart, Chroma::MINUS, Chroma::n_count, Chroma::psi, Chroma::SysSolverCGParams::RsdCG, Chroma::SysSolverCGParams::RsdCGRestart, Chroma::LinOpSysSolverCGArray< T >::size(), and Chroma::START_CODE().
|
inlinevirtual |
Expected length of array index.
Implements Chroma::SystemSolverArray< T >.
Definition at line 50 of file syssolver_linop_cg_array.h.
References Chroma::LinOpSysSolverCGArray< T >::A.
Referenced by Chroma::LinOpSysSolverCGArray< T >::operator()().
|
inlinevirtual |
Return the subset on which the operator acts.
Implements Chroma::SystemSolverArray< T >.
Definition at line 53 of file syssolver_linop_cg_array.h.
References Chroma::LinOpSysSolverCGArray< T >::A.
|
private |
Definition at line 95 of file syssolver_linop_cg_array.h.
Referenced by Chroma::LinOpSysSolverCGArray< T >::operator()(), Chroma::LinOpSysSolverCGArray< T >::size(), and Chroma::LinOpSysSolverCGArray< T >::subset().
|
private |
Definition at line 96 of file syssolver_linop_cg_array.h.
Referenced by Chroma::LinOpSysSolverCGArray< T >::operator()().