diff --git a/gtsam/sfm/ShonanAveraging.cpp b/gtsam/sfm/ShonanAveraging.cpp index 31a21186bf..cd8a35a6c8 100644 --- a/gtsam/sfm/ShonanAveraging.cpp +++ b/gtsam/sfm/ShonanAveraging.cpp @@ -631,7 +631,7 @@ static bool SparseMinimumEigenValue( Eigen::Index numLanczosVectors = 20) { // a. Estimate the largest-magnitude eigenvalue of this matrix using Lanczos MatrixProdFunctor lmOperator(A); - Spectra::SymEigsSolver lmEigenValueSolver( + Spectra::SymEigsSolver lmEigenValueSolver( lmOperator, 1, std::min(numLanczosVectors, A.rows())); lmEigenValueSolver.init(); @@ -665,7 +665,7 @@ static bool SparseMinimumEigenValue( MatrixProdFunctor minShiftedOperator(A, -2 * lmEigenValue); - Spectra::SymEigsSolver minEigenValueSolver( + Spectra::SymEigsSolver minEigenValueSolver( minShiftedOperator, 1, std::min(numLanczosVectors, A.rows())); // If S is a critical point of F, then S^T is also in the null space of S -