30 const LatticeFermion&
psi,
56 const LatticeFermion&
psi,
61 LatticeFermion tmp1,
tmp2;
81 tmp1 = Gamma(
G5) *
psi;
140 multi1d<Double>
a(
MaxCG+1);
141 multi1d<Double>
b(
MaxCG+1);
185 multi1d<Double> c_iter(
MaxCG+1);
190 for(
k = 0;
k <
MaxCG && ! convP ; ++
k) {
194 (*MdagM)(Ap,
p,
PLUS);
203 d = innerProductReal(
p, Ap);
221 p =
r + Real(
b[
k+1])*
p;
229 multi2d<Double> gamma(niters+1,
numroot);
236 multi1d<int> convIter(
numroot);
239 for(
int j=0;
j < niters;
j++) {
243 if(
s !=
isz && ! convPs[
s] ) {
263 ga_minus = gamma[
j-1][
s];
266 Double tmp_num = ga*ga_minus*a_minus;
268 tmp_den +=
a[
j]*
b[
j]*(ga_minus - ga);
270 gamma[
j+1][
s] = tmp_num/tmp_den;
275 if( toBool( gamma[
j+1][
s]*gamma[
j+1][
s]*c_iter[
j+1] <
rsd_sq ) ) {
289 multi1d<Double> sumC(niters+1);
291 for(
int j=0;
j<=niters;
j++) {
295 for(
int m=0;
m < niters-
j;
m++) {
307 if( toBool( (
j+
m+1) <= convIter[
s] ) ) {
318 for(
int k=1;
k <=
m;
k++) {
324 sumC[
j] +=
a[
j+
m]*delta_m*qsum;
337 for(
k=0;
k < niters && !convP ;
k++) {
338 (*MdagM)(Ap,
p,
PLUS);
348 chi += Real(sumC[
k])*
r;
366 convP = toBool( c_iter[
k+1]*sumC[
k+1]*sumC[
k+1] < chi_norm_new );
368 p =
r + Real(
b[
k+1])*
p;
372 QDPIO::cout <<
"Overlap Inner Solve (lovlap_double_pass): " <<
k <<
" iterations " << std::endl;
381 tmp1 = Gamma(
G5) *
chi;
Primary include file for CHROMA library code.
const multi1d< LatticeFermion > EigVec
const multi1d< Real > EigValFunc
const multi1d< Real > rootQ
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