aboutsummaryrefslogtreecommitdiff
path: root/test/spqr_support.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/spqr_support.cpp')
-rw-r--r--test/spqr_support.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/spqr_support.cpp b/test/spqr_support.cpp
index b8980e081..81e63b6a5 100644
--- a/test/spqr_support.cpp
+++ b/test/spqr_support.cpp
@@ -5,6 +5,8 @@
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
+
+#define EIGEN_NO_DEBUG_SMALL_PRODUCT_BLOCKS
#include "sparse.h"
#include <Eigen/SPQRSupport>
@@ -18,8 +20,8 @@ int generate_sparse_rectangular_problem(MatrixType& A, DenseMat& dA, int maxRows
int cols = internal::random<int>(1,rows);
double density = (std::max)(8./(rows*cols), 0.01);
- A.resize(rows,rows);
- dA.resize(rows,rows);
+ A.resize(rows,cols);
+ dA.resize(rows,cols);
initSparse<Scalar>(density, dA, A,ForceNonZeroDiag);
A.makeCompressed();
return rows;
@@ -35,7 +37,7 @@ template<typename Scalar> void test_spqr_scalar()
SPQR<MatrixType> solver;
generate_sparse_rectangular_problem(A,dA);
- int m = A.rows();
+ Index m = A.rows();
b = DenseVector::Random(m);
solver.compute(A);
if (solver.info() != Success)