Skip to content

Commit

Permalink
ShonanAveraging.cpp: pass explicit template args for GCC 7
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jan 10, 2025
1 parent 32620c2 commit f76bdec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtsam/sfm/ShonanAveraging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,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<MatrixProdFunctor> lmEigenValueSolver(
lmOperator, 1, std::min(numLanczosVectors, A.rows()));
lmEigenValueSolver.init();

Expand Down Expand Up @@ -666,7 +666,7 @@ static bool SparseMinimumEigenValue(

MatrixProdFunctor minShiftedOperator(A, -2 * lmEigenValue);

Spectra::SymEigsSolver minEigenValueSolver(
Spectra::SymEigsSolver<MatrixProdFunctor> 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 -
Expand Down

0 comments on commit f76bdec

Please sign in to comment.