You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/matrix_operations/EigenvaluesProblems.h
+39-4Lines changed: 39 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -167,9 +167,12 @@ class EigenvaluesProblems<NT, Eigen::Matrix<NT,Eigen::Dynamic,Eigen::Dynamic>, E
167
167
Spectra::DenseSymMatProd<NT> op(B);
168
168
Spectra::DenseCholesky<NT> Bop(-A);
169
169
170
-
// Construct generalized eigen solver object, requesting the largest three generalized eigenvalues
170
+
// Construct generalized eigen solver object, computing the minimum positive eigenvalue by computing the largest eigenvalue of the inverse Generalized Eigenvalue Problem
171
+
// An empirical value of ncv that gives a better performance
172
+
// TODO: tune this implementation by tuning the parameters like ncv
173
+
int ncv = std::min(std::max(10, matrixDim/20), matrixDim);
0 commit comments