Fix private shadowing of protected base members in iterative solvers

libeigen/eigen!2357

Closes #1859
This commit is contained in:
Pavel Guzenfeld
2026-03-29 22:40:48 +00:00
committed by Rasmus Munk Larsen
parent 9fe2f03fa4
commit 753a6ac5b3
8 changed files with 8 additions and 0 deletions

View File

@@ -280,6 +280,7 @@ struct traits<Eigen::BiCGSTABL<MatrixType_, Preconditioner_>> {
template <typename MatrixType_, typename Preconditioner_>
class BiCGSTABL : public IterativeSolverBase<BiCGSTABL<MatrixType_, Preconditioner_>> {
protected:
typedef IterativeSolverBase<BiCGSTABL> Base;
using Base::m_error;
using Base::m_info;

View File

@@ -96,6 +96,7 @@ void sortWithPermutation(VectorType& vec, IndexType& perm, typename IndexType::S
*/
template <typename MatrixType_, typename Preconditioner_>
class DGMRES : public IterativeSolverBase<DGMRES<MatrixType_, Preconditioner_> > {
protected:
typedef IterativeSolverBase<DGMRES> Base;
using Base::m_error;
using Base::m_info;

View File

@@ -253,6 +253,7 @@ struct traits<GMRES<MatrixType_, Preconditioner_> > {
*/
template <typename MatrixType_, typename Preconditioner_>
class GMRES : public IterativeSolverBase<GMRES<MatrixType_, Preconditioner_> > {
protected:
typedef IterativeSolverBase<GMRES> Base;
using Base::m_error;
using Base::m_info;

View File

@@ -410,6 +410,7 @@ struct traits<IDRSTABL<MatrixType_, Preconditioner_>> {
template <typename MatrixType_, typename Preconditioner_>
class IDRSTABL : public IterativeSolverBase<IDRSTABL<MatrixType_, Preconditioner_>> {
protected:
typedef IterativeSolverBase<IDRSTABL> Base;
using Base::m_error;
using Base::m_info;

View File

@@ -186,6 +186,7 @@ struct traits<MINRES<MatrixType_, UpLo_, Preconditioner_> > {
*/
template <typename MatrixType_, int UpLo_, typename Preconditioner_>
class MINRES : public IterativeSolverBase<MINRES<MatrixType_, UpLo_, Preconditioner_> > {
protected:
typedef IterativeSolverBase<MINRES> Base;
using Base::m_error;
using Base::m_info;