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

@@ -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