From 3686827df5f20a279207b857c8451f83fc277b4f Mon Sep 17 00:00:00 2001 From: Chulwoo Jung Date: Thu, 8 Mar 2018 19:22:25 -0500 Subject: [PATCH] Reverted ImplicitlyRestartedLanczos.h --- .../iterative/ImplicitlyRestartedLanczos.h | 62 +------------------ 1 file changed, 3 insertions(+), 59 deletions(-) diff --git a/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h b/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h index 9e711716..787cf15a 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h @@ -35,8 +35,6 @@ Author: Christoph Lehner //#include #include -#define clog std::cout << GridLogMessage - namespace Grid { //////////////////////////////////////////////////////// @@ -403,16 +401,7 @@ until convergence std::cout<0); - // for (int j=0; j= MinRestart) { @@ -622,17 +574,10 @@ until convergence _PolyOp(evec_k,w); std::cout<0) { - w -= lme[k-1] * evec[k-1]; - //clog << "ckpt A (k= " << k << ")" << '\n'; - //clog << "lme = " << lme[k-1] << '\n'; - //clog << "norm(w) = " << norm2(w) << std::endl; - } + if(k>0) w -= lme[k-1] * evec[k-1]; ComplexD zalph = innerProduct(evec_k,w); // 4. αk:=(wk,vk) RealD alph = real(zalph); - //clog << "ckpt B (k= " << k << ")" << '\n'; - //clog << "lmd = " << alph << std::endl; w = w - alph * evec_k;// 5. wk:=wk−αkvk @@ -893,5 +838,4 @@ void diagonalize_QR(std::vector& lmd, std::vector& lme, } }; } -#undef clog #endif