Correct bug in SPQR backend and replace matrixQR by matrixR

This commit is contained in:
Desire NUENTSA
2013-01-29 17:48:30 +01:00
parent 8bc00925e5
commit 35647b0133
2 changed files with 24 additions and 20 deletions

View File

@@ -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<int>(1,maxRows);
int cols = internal::random<int>(1,maxCols);
int cols = internal::random<int>(1,rows);
double density = (std::max)(8./(rows*cols), 0.01);
A.resize(rows,rows);
@@ -35,8 +35,8 @@ template<typename Scalar> void test_spqr_scalar()
SPQR<MatrixType> 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)
{