arpackmm: allow for using LA/SA magnitudes. (#402)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 "
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user