diff options
-rw-r--r-- | Eigen/src/Eigen2Support/SVD.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/Eigen2Support/SVD.h b/Eigen/src/Eigen2Support/SVD.h index 077d26d54..3d03d2288 100644 --- a/Eigen/src/Eigen2Support/SVD.h +++ b/Eigen/src/Eigen2Support/SVD.h @@ -512,8 +512,7 @@ template<typename MatrixType> template<typename OtherDerived, typename ResultType> bool SVD<MatrixType>::solve(const MatrixBase<OtherDerived> &b, ResultType* result) const { - const int rows = m_matU.rows(); - ei_assert(b.rows() == rows); + ei_assert(b.rows() == m_matU.rows()); Scalar maxVal = m_sigma.cwise().abs().maxCoeff(); for (int j=0; j<b.cols(); ++j) |