arpackmm: allow for using LA/SA magnitudes. (#402)

This commit is contained in:
Franck HOUSSEN
2023-02-17 22:30:40 +01:00
committed by GitHub
parent 3a9a9ce8c0
commit cd49a7fb98
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -2,6 +2,7 @@ arpack-ng - 3.9.1
[ Franck Houssen ]
* [BUG FIX] Fix install: headers in /path/to/local/include/arpack
* arpackmm: allow for using LA/SA magnitudes.
-- Franck Houssen <fghoussen@users.noreply.github.com> Sat, 11 Feb 2023 13:52:57 +0100
+2 -2
View File
@@ -104,7 +104,7 @@ class options {
mag = argv[a]; // small mag (likely poor perf) <=> large mag + invert
// (likely good perf).
bool ok = (mag == "LM" || mag == "SM" || mag == "LR" || mag == "SR" ||
mag == "LI" || mag == "SI")
mag == "LA" || mag == "SA" || mag == "LI" || mag == "SI")
? true
: false;
if (!ok) {
@@ -388,7 +388,7 @@ class options {
"[dz]*upd)"
<< endl;
cout << " --mag M: set magnitude of eigen values to look for "
"(LM, SM, LR, SR, LI, SI)."
"(LM, SM, LR, SR, LA, SA, LI, SI)."
<< endl;
cout << " default: large magnitude (LM)" << endl;
cout << " --shiftReal S: real shift where sigma = S (look for lambda+S "
+1 -1
View File
@@ -11,7 +11,7 @@ for eigPb in "--A As.mtx" "--nonSymPb --A An.mtx" "--nonSymPb --cpxPb --A Az.mtx
do
for genPb in "" "--genPb"
do
for smallMag in "" "--mag SM --noCheck" # SM is known to be difficult to converge.
for smallMag in "" "LA" "--mag SM --noCheck" # SM is known to be difficult to converge.
do
export shiftOpt=""
if [[ "$eigPb" == *nonSymPb* ]]; then