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 Dec 10, 2024
1 parent de8e6cf commit 5368ad7
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 @@ -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<MatrixProdFunctor> lmEigenValueSolver(
lmOperator, 1, std::min(numLanczosVectors, A.rows()));
lmEigenValueSolver.init();

Expand Down Expand Up @@ -665,7 +665,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 5368ad7

Please sign in to comment.