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