From 25a3e65a685f66f04b83003f12cd97b91e646c20 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 26 Aug 2014 23:32:32 +0200 Subject: In SparseQR, calling factorize() without analyzePattern() was broken. --- test/sparseqr.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/sparseqr.cpp') 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 void test_sparseqr_scalar() b = dA * DenseVector::Random(A.cols()); solver.compute(A); + if(internal::random(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"; -- cgit v1.2.3