From b9d2900e8f57336cda99defa51e58675835b5b4d Mon Sep 17 00:00:00 2001 From: Erik Schultheis Date: Thu, 24 Mar 2022 12:07:18 +0200 Subject: [PATCH] added a missing typename and fixed a unused typedef warning --- Eigen/src/QR/HouseholderQR.h | 1 - unsupported/test/NNLS.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Eigen/src/QR/HouseholderQR.h b/Eigen/src/QR/HouseholderQR.h index b6594983f..5e67463c7 100644 --- a/Eigen/src/QR/HouseholderQR.h +++ b/Eigen/src/QR/HouseholderQR.h @@ -309,7 +309,6 @@ template void householder_qr_inplace_update(MatrixQR& mat, HCoeffs& hCoeffs, const VectorQR& newColumn, typename MatrixQR::Index k, typename MatrixQR::Scalar* tempData) { typedef typename MatrixQR::Index Index; - typedef typename MatrixQR::Scalar Scalar; typedef typename MatrixQR::RealScalar RealScalar; Index rows = mat.rows(); diff --git a/unsupported/test/NNLS.cpp b/unsupported/test/NNLS.cpp index 4b8ffa8b2..d65920bfc 100644 --- a/unsupported/test/NNLS.cpp +++ b/unsupported/test/NNLS.cpp @@ -90,7 +90,7 @@ static void test_nnls_random_problem() { sqrt(Eigen::GenericNumTraits::epsilon()) * b.cwiseAbs().maxCoeff() * A.cwiseAbs().maxCoeff(); Index max_iter = 5 * A.cols(); // A heuristic guess. NNLS nnls(A, max_iter, tolerance); - const NNLS::SolutionVectorType &x = nnls.solve(b); + const typename NNLS::SolutionVectorType &x = nnls.solve(b); // // VERIFY