From 44b218a595d40686832a24ea0cb12f947737049d Mon Sep 17 00:00:00 2001 From: Yong-Chull Jang Date: Fri, 29 Dec 2017 23:26:17 -0500 Subject: [PATCH] force hermicity to the block alpha and force diagonal of the block beta to be real --- .../ImplicitlyRestartedBlockLanczos.h | 61 +++++++++++++------ 1 file changed, 42 insertions(+), 19 deletions(-) diff --git a/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h b/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h index 694f14fc..ff8050b7 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h @@ -105,6 +105,18 @@ public: } normalize(w); } + + void orthogonalize_blockhead(Field& w, std::vector& evec, int k, int Nu) + { + typedef typename Field::scalar_type MyComplex; + MyComplex ip; + + for(int j=0; j0) { for (int u=0; u