added a missing typename and fixed a unused typedef warning

This commit is contained in:
Erik Schultheis 2022-03-24 12:07:18 +02:00
parent 0611f7fff0
commit b9d2900e8f
2 changed files with 1 additions and 2 deletions

View File

@ -309,7 +309,6 @@ template <typename MatrixQR, typename HCoeffs, typename VectorQR>
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();

View File

@ -90,7 +90,7 @@ static void test_nnls_random_problem() {
sqrt(Eigen::GenericNumTraits<Scalar>::epsilon()) * b.cwiseAbs().maxCoeff() * A.cwiseAbs().maxCoeff();
Index max_iter = 5 * A.cols(); // A heuristic guess.
NNLS<MatrixType> nnls(A, max_iter, tolerance);
const NNLS<MatrixType>::SolutionVectorType &x = nnls.solve(b);
const typename NNLS<MatrixType>::SolutionVectorType &x = nnls.solve(b);
//
// VERIFY