17 #undef CHROMA_INV_REL_CG1_RSD_CHK
29 const Subset&
s =
A.subset();
31 Real chi_sq = Real(norm2(
chi,
s));
59 QDPIO::cout <<
"InvRelCG1: k = 0 cp = " <<
cp <<
" rsd_sq = " <<
rsd_sq
80 inner_tol = sqrt(
rsd_sq)*sqrt(zeta);
91 QDPIO::cout <<
"Inner tol = " << inner_tol <<
" || Ap - q || = " << tmpnorm << std::endl;
99 Real
a = Real(
c)/Real(
d);
111 #ifdef CHROMA_INV_REL_CG1_RSD_CHK
113 LatticeFermion rcheck;
116 QDPIO::cout <<
"InvCG1: inter " <<
k<<
" || b - Ax ||^2 = " << norm2(rcheck,
s) <<
" || r ||^2 = " <<
c << std::endl;
123 Real
b = Real(
c) / Real(
cp);
137 QDPIO::cerr <<
"Nonconvergence Warning: n_count =" <<
n_count << std::endl;
145 const LatticeFermion&
chi,
Primary include file for CHROMA library code.
void InvRelCG1_a(const LinearOperator< T > &A, const T &chi, T &psi, const Real &RsdCG, int MaxCG, int &n_count)
Conjugate-Gradient (CGNE) algorithm for a generic Linear Operator.
void InvRelCG1(const LinearOperator< LatticeFermion > &A, const LatticeFermion &chi, LatticeFermion &psi, const Real &RsdCG, int MaxCG, int &n_count)
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 > s(Ncb)
FloatingPoint< double > Double