ShonanAveraging.cpp: pass explicit template args for GCC 7

release/4.3a0
Martin Valgur 2024-12-09 17:18:31 +02:00
parent 6a42d8a1b2
commit b2a351c8de
1 changed files with 2 additions and 2 deletions

View File

@ -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();
@ -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 -