diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-08-26 23:32:32 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-08-26 23:32:32 +0200 |
commit | 25a3e65a685f66f04b83003f12cd97b91e646c20 (patch) | |
tree | edc7d28bbab97d0eb32c01c1e75b69dc042618d4 /test/sparseqr.cpp | |
parent | be3477e2069cbfe7158a00c11e265d81d7e88e7e (diff) |
In SparseQR, calling factorize() without analyzePattern() was broken.
Diffstat (limited to 'test/sparseqr.cpp')
-rw-r--r-- | test/sparseqr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sparseqr.cpp b/test/sparseqr.cpp index 1fe4a98ee..8e6887dd3 100644 --- a/test/sparseqr.cpp +++ b/test/sparseqr.cpp @@ -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"; |