From 3caf0e8b0969ef337312c8d9b17493a27752b00a Mon Sep 17 00:00:00 2001 From: Yong-Chull Jang Date: Fri, 2 Feb 2018 18:43:37 -0500 Subject: [PATCH] print Ritz values before and after the shift; rollback to simple last lanczos vector rebuild; print formatting is changed --- .../ImplicitlyRestartedBlockLanczos.h | 183 ++++++++---------- 1 file changed, 76 insertions(+), 107 deletions(-) diff --git a/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h b/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h index bf849a0f..71aa2891 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h @@ -118,23 +118,6 @@ public: normalize(w); } -/* Rudy Arthur's thesis pp.137 ------------------------- -Require: M > K P = M − K † -Compute the factorization AVM = VM HM + fM eM -repeat - Q=I - for i = 1,...,P do - QiRi =HM −θiI Q = QQi - H M = Q †i H M Q i - end for - βK =HM(K+1,K) σK =Q(M,K) - r=vK+1βK +rσK - VK =VM(1:M)Q(1:M,1:K) - HK =HM(1:K,1:K) - →AVK =VKHK +fKe†K † Extend to an M = K + P step factorization AVM = VMHM + fMeM -until convergence -*/ void calc(std::vector& eval, std::vector& evec, const std::vector& src, int& Nconv) @@ -197,10 +180,7 @@ until convergence int iter; for(iter = 0; iter>& lmd, std::vector>& lme, std::vector& evec,