In SparseQR, calling factorize() without analyzePattern() was broken.

This commit is contained in:
Gael Guennebaud
2014-08-26 23:32:32 +02:00
parent be3477e206
commit 25a3e65a68
2 changed files with 16 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ template<typename Scalar> void test_sparseqr_scalar()
b = dA * DenseVector::Random(A.cols());
solver.compute(A);
if(internal::random<float>(0,1)>0.5)
solver.factorize(A); // this checks that calling analyzePattern is not needed if the pattern do not change.
if (solver.info() != Success)
{
std::cerr << "sparse QR factorization failed\n";