mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
added a missing typename and fixed a unused typedef warning
This commit is contained in:
parent
0611f7fff0
commit
b9d2900e8f
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user