6 #ifndef __syssolver_linop_bicgstab_h__
7 #define __syssolver_linop_bicgstab_h__
21 namespace LinOpSysSolverBiCGStabEnv
49 const Subset&
subset()
const {
return A->subset();}
75 double time = swatch.getTimeInSeconds();
81 r[
A->subset()] -=
tmp;
82 res.
resid = sqrt(norm2(
r,
A->subset()));
84 QDPIO::cout <<
"BICGSTAB_SOLVER: " << res.
n_count <<
" iterations. Rsd = " << res.
resid <<
" Relative Rsd = " << res.
resid/sqrt(norm2(
chi,
A->subset())) << std::endl;
85 QDPIO::cout <<
"BICGSTAB_SOLVER_TIME: "<<time<<
" sec" << std::endl;
Class for counted reference semantics.
Solve a M*psi=chi linear system by BICGSTAB.
~LinOpSysSolverBiCGStab()
Destructor is automatic.
const Subset & subset() const
Return the subset on which the operator acts.
SysSolverBiCGStabParams invParam
SystemSolverResults_t operator()(T &psi, const T &chi) const
Solver the linear system.
LinOpSysSolverBiCGStab(Handle< LinearOperator< T > > A_, const SysSolverBiCGStabParams &invParam_)
Constructor.
Handle< LinearOperator< T > > A
SystemSolver disambiguator.
Class for counted reference semantics.
Conjugate-Gradient algorithm for a generic Linear Operator.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
LinOpSysSolverMGProtoClover::T T
SystemSolverResults_t InvBiCGStab(const LinearOperator< LatticeFermionF > &A, const LatticeFermionF &chi, LatticeFermionF &psi, const Real &RsdBiCGStab, int MaxBiCGStab, enum PlusMinus isign)
multi1d< LatticeFermion > chi(Ncb)
Params for BiCGStab inverter.
Holds return info from SystemSolver call.
Disambiguator for LinOp system solvers.