Add const to non-mutating member functions across remaining modules

libeigen/eigen!2222

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
Rasmus Munk Larsen
2026-02-26 13:58:04 -08:00
parent 13b61529f4
commit 3adfa9bd37
22 changed files with 158 additions and 146 deletions

View File

@@ -222,7 +222,7 @@ class ComplexEigenSolver {
}
/** \brief Returns the maximum number of iterations. */
Index getMaxIterations() { return m_schur.getMaxIterations(); }
Index getMaxIterations() const { return m_schur.getMaxIterations(); }
protected:
EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar)

View File

@@ -233,7 +233,7 @@ class ComplexSchur {
}
/** \brief Returns the maximum number of iterations. */
Index getMaxIterations() { return m_maxIters; }
Index getMaxIterations() const { return m_maxIters; }
/** \brief Maximum number of iterations per row.
*

View File

@@ -292,7 +292,7 @@ class EigenSolver {
}
/** \brief Returns the maximum number of iterations. */
Index getMaxIterations() { return m_realSchur.getMaxIterations(); }
Index getMaxIterations() const { return m_realSchur.getMaxIterations(); }
private:
void doComputeEigenvectors();

View File

@@ -207,7 +207,7 @@ class RealSchur {
}
/** \brief Returns the maximum number of iterations. */
Index getMaxIterations() { return m_maxIters; }
Index getMaxIterations() const { return m_maxIters; }
/** \brief Maximum number of iterations per row.
*