From 35647b01334370d0ddfd5d2d3376d4200947b007 Mon Sep 17 00:00:00 2001 From: Desire NUENTSA Date: Tue, 29 Jan 2013 17:48:30 +0100 Subject: Correct bug in SPQR backend and replace matrixQR by matrixR --- test/spqr_support.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/spqr_support.cpp') diff --git a/test/spqr_support.cpp b/test/spqr_support.cpp index fbfd4c58b..7e4b6e18a 100644 --- a/test/spqr_support.cpp +++ b/test/spqr_support.cpp @@ -15,7 +15,7 @@ int generate_sparse_rectangular_problem(MatrixType& A, DenseMat& dA, int maxRows eigen_assert(maxRows >= maxCols); typedef typename MatrixType::Scalar Scalar; int rows = internal::random(1,maxRows); - int cols = internal::random(1,maxCols); + int cols = internal::random(1,rows); double density = (std::max)(8./(rows*cols), 0.01); A.resize(rows,rows); @@ -35,8 +35,8 @@ template void test_spqr_scalar() SPQR solver; generate_sparse_rectangular_problem(A,dA); - int n = A.cols(); - b = DenseVector::Random(n); + int m = A.rows(); + b = DenseVector::Random(m); solver.compute(A); if (solver.info() != Success) { -- cgit v1.2.3