32 const LatticeFermion&
psi,
58 const LatticeFermion&
psi,
63 LatticeFermion tmp1,
tmp2;
81 tmp1 = Gamma(
G5) *
psi;
143 multi1d<Double>
a(
MaxCG+1);
144 multi1d<Double>
b(
MaxCG+1);
170 multi1d<Double> c_iter(
MaxCG+1);
175 for(
k = 0;
k <
MaxCG && ! convP ; ++
k) {
179 (*MdagM)(Ap,
p,
PLUS);
188 d = innerProductReal(
p, Ap);
206 p =
r + Real(
b[
k+1])*
p;
214 multi2d<Double> gamma(niters+1,
numroot);
221 multi1d<int> convIter(
numroot);
224 for(
int j=0;
j < niters;
j++) {
228 if(
s !=
isz && ! convPs[
s] ) {
248 ga_minus = gamma[
j-1][
s];
251 Double tmp_num = ga*ga_minus*a_minus;
253 tmp_den +=
a[
j]*
b[
j]*(ga_minus - ga);
255 gamma[
j+1][
s] = tmp_num/tmp_den;
260 if( toBool( gamma[
j+1][
s]*gamma[
j+1][
s]*c_iter[
j+1] <
rsd_sq ) ) {
274 multi1d<Double> sumC(niters+1);
276 for(
int j=0;
j<=niters;
j++) {
280 for(
int m=0;
m < niters-
j;
m++) {
292 if( toBool( (
j+
m+1) <= convIter[
s] ) ) {
303 for(
int k=1;
k <=
m;
k++) {
309 sumC[
j] +=
a[
j+
m]*delta_m*qsum;
322 for(
k=0;
k < niters && !convP ;
k++) {
323 (*MdagM)(Ap,
p,
PLUS);
333 chi += Real(sumC[
k])*
r;
351 convP = toBool( c_iter[
k+1]*sumC[
k+1]*sumC[
k+1] < chi_norm_new );
353 p =
r + Real(
b[
k+1])*
p;
365 tmp1 = Gamma(
G5) *
chi;
369 QDPIO::cout <<
"Overlap Inner Solve (lg5eps_double_pass): " <<
k <<
" iterations " << std::endl;
Primary include file for CHROMA library code.
const multi1d< Real > EigValFunc
const multi1d< Real > rootQ
const multi1d< LatticeFermion > EigVec
const multi1d< Real > resP
Gramm-Schmidt orthogonolization.
void GramSchm(multi1d< LatticeFermion > &psi, const int Npsi, const multi1d< LatticeFermion > &vec, const int Nvec, const Subset &sub)
Gramm-Schmidt orthogonolization.
void operator()(LatticeFermion &chi, const LatticeFermion &psi, enum PlusMinus isign) const
Apply the operator onto a source std::vector.
Internal Overlap-pole operator.
int epsilon(int i, int j, int k)
BinaryReturn< C1, C2, FnInnerProduct >::Type_t innerProduct(const QDPSubType< T1, C1 > &s1, const QDPType< T2, C2 > &s2)
Asqtad Staggered-Dirac operator.
QDP_error_exit("too many BiCG iterations", n_count, rsd_sq, cp, c, re_rvr, im_rvr, re_a, im_a, re_b, im_b)
multi1d< LatticeFermion > chi(Ncb)
multi1d< LatticeFermion > s(Ncb)
FloatingPoint< double > Double