74 Real chi_sq = Real(norm2(
chi,
s));
76 QDPIO::cout <<
"chi_norm = " << sqrt(chi_sq) << std::endl;
99 QDPIO::cout <<
"InvRelCG2: k = 0 c = " <<
cp <<
" rsd_sq = " <<
rsd_sq << std::endl;
121 Real inner_tol = sqrt(
rsd_sq)*sqrt(zeta)/Real(2);
128 d = innerProductReal(mmp,
p,
s);
153 Real
b = Real(
c) / Real(
cp);
160 QDPIO::cout <<
"InvCG: k = " <<
k <<
" cp = " <<
cp << std::endl;
169 QDPIO::cerr <<
"Nonconvergence Warning n_count = " <<
n_count << std::endl;
176 const LatticeFermion&
chi,
Primary include file for CHROMA library code.
virtual const Subset & subset() const =0
Return the subset on which the operator acts.
void InvRelCG2_a(const LinearOperator< T > &M, const T &chi, T &psi, const Real &RsdCG, int MaxCG, int &n_count)
Conjugate-Gradient (CGNE) algorithm for a generic Linear Operator.
void InvRelCG2(const LinearOperator< LatticeFermion > &M, const LatticeFermion &chi, LatticeFermion &psi, const Real &RsdCG, int MaxCG, int &n_count)
Relaxed Conjugate-Gradient (CGNE) algorithm for a generic Linear Operator.
Conjugate-Gradient algorithm for a generic Linear Operator.
Asqtad Staggered-Dirac operator.
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > enum InvType invType const multi1d< Real > & RsdCG
LinOpSysSolverMGProtoClover::T T
const WilsonTypeFermAct< multi1d< LatticeFermion > > Handle< const ConnectState > const multi1d< Real > enum InvType invType const multi1d< Real > int MaxCG
multi1d< LatticeFermion > chi(Ncb)
multi1d< LatticeFermion > mp(Ncb)
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double