From 4c8744774f0f2d7a3d6f22ba65aa266c5c4cf6ed Mon Sep 17 00:00:00 2001 From: Ludwig Striet Date: Thu, 16 Oct 2025 13:30:48 +0000 Subject: [PATCH] Fixes #2987: delete unused variable steps --- Eigen/src/Eigenvalues/ComplexQZ.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Eigen/src/Eigenvalues/ComplexQZ.h b/Eigen/src/Eigenvalues/ComplexQZ.h index 888fb8ce2..817aff4a8 100644 --- a/Eigen/src/Eigenvalues/ComplexQZ.h +++ b/Eigen/src/Eigenvalues/ComplexQZ.h @@ -269,8 +269,6 @@ void ComplexQZ::hessenbergTriangular(const MatrixType& A, const Mat if (m_computeQZ) m_Z = MatrixType::Identity(m_n, m_n); - int steps = 0; - // reduce S to upper Hessenberg with Givens rotations for (Index j = 0; j <= m_n - 3; j++) { for (Index i = m_n - 1; i >= j + 2; i--) { @@ -300,7 +298,6 @@ void ComplexQZ::hessenbergTriangular(const MatrixType& A, const Mat // update Z if (m_computeQZ) m_Z.applyOnTheLeft(i - 1, i, G); } - steps++; } } } @@ -331,7 +328,6 @@ void ComplexQZ::hessenbergTriangularSparse(const SparseMatrixType_& if (m_computeQZ) m_Z = MatrixType::Identity(m_n, m_n); - unsigned int steps = 0; // reduce S to upper Hessenberg with Givens rotations for (Index j = 0; j <= m_n - 3; j++) { for (Index i = m_n - 1; i >= j + 2; i--) { @@ -363,7 +359,6 @@ void ComplexQZ::hessenbergTriangularSparse(const SparseMatrixType_& // update Z if (m_computeQZ) m_Z.applyOnTheLeft(i - 1, i, G); } - steps++; } } }