From 191fbf85fc31cc0f846be6969127a3bc72ed988d Mon Sep 17 00:00:00 2001 From: Chulwoo Jung Date: Fri, 28 Jul 2017 15:33:59 -0400 Subject: [PATCH] Added ImplicitlyRestartedLanczosCJ to Algorithms.h --- lib/algorithms/Algorithms.h | 5 +++++ lib/algorithms/iterative/ImplicitlyRestartedLanczosCJ.h | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/algorithms/Algorithms.h b/lib/algorithms/Algorithms.h index 6768555c..bd7008ee 100644 --- a/lib/algorithms/Algorithms.h +++ b/lib/algorithms/Algorithms.h @@ -38,6 +38,10 @@ Author: Peter Boyle #include #include +#include +#include +#include + #include #include #include @@ -48,6 +52,7 @@ Author: Peter Boyle // Lanczos support //#include #include +#include #include #include #include diff --git a/lib/algorithms/iterative/ImplicitlyRestartedLanczosCJ.h b/lib/algorithms/iterative/ImplicitlyRestartedLanczosCJ.h index 5e2f8cc0..5fc57774 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedLanczosCJ.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedLanczosCJ.h @@ -27,8 +27,8 @@ Author: Chulwoo Jung See the full license in the file "LICENSE" in the top level distribution directory *************************************************************************************/ /* END LEGAL */ -#ifndef GRID_IRL_H -#define GRID_IRL_H +#ifndef GRID_IRL_CJ_H +#define GRID_IRL_CJ_H #include //memset @@ -91,7 +91,7 @@ public: void init(void){}; void Abort(int ff, DenseVector &evals, DenseVector > &evecs); - ImplicitlyRestartedLanczos( + ImplicitlyRestartedLanczosCJ( LinearOperatorBase &Linop, // op OperatorFunction & poly, // polynmial int _Nstop, // sought vecs @@ -110,7 +110,7 @@ public: Np = Nm-Nk; assert(Np>0); }; - ImplicitlyRestartedLanczos( + ImplicitlyRestartedLanczosCJ( LinearOperatorBase &Linop, // op OperatorFunction & poly, // polynmial int _Nk, // sought vecs