6 #ifndef __syssolver_mdagm_cg_array_h__
7 #define __syssolver_mdagm_cg_array_h__
21 namespace MdagMSysSolverCGArrayEnv
49 int size()
const {
return A->size();}
52 const Subset&
subset()
const {
return A->subset();}
68 #ifdef CHROMA_DO_ONE_CG_RESTART
Class for counted reference semantics.
Linear Operator to arrays.
Solve a CG2 system. Here, the operator is NOT assumed to be hermitian.
SystemSolverResults_t operator()(multi1d< T > &psi, const multi1d< T > &chi) const
Solver the linear system.
int size() const
Expected length of array index.
SysSolverCGParams invParam
MdagMSysSolverCGArray(Handle< LinearOperatorArray< T > > A_, const SysSolverCGParams &invParam_)
Constructor.
~MdagMSysSolverCGArray()
Destructor is automatic.
const Subset & subset() const
Return the subset on which the operator acts.
Handle< LinearOperatorArray< T > > A
SystemSolver disambiguator.
SystemSolverResults_t InvCG2(const LinearOperator< LatticeFermionF > &M, const LatticeFermionF &chi, LatticeFermionF &psi, const Real &RsdCG, int MaxCG)
Conjugate-Gradient (CGNE) algorithm for a generic Linear Operator.
Class for counted reference semantics.
Conjugate-Gradient algorithm for a generic Linear Operator.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
multi1d< LatticeFermion > chi(Ncb)
Holds return info from SystemSolver call.
Disambiguator for MdagM system solvers.