From 23535ed31c6e59136ec16f6c3ea7ba1357016cde Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 24 Jun 2015 17:55:41 +0200 Subject: Add unit test for dense = SparseQR::matrixQ --- test/sparseqr.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/sparseqr.cpp') diff --git a/test/sparseqr.cpp b/test/sparseqr.cpp index 8e6887dd3..50d1fcdf2 100644 --- a/test/sparseqr.cpp +++ b/test/sparseqr.cpp @@ -89,6 +89,11 @@ template void test_sparseqr_scalar() QtQ = Q * Q.adjoint(); idM.resize(Q.rows(), Q.rows()); idM.setIdentity(); VERIFY(idM.isApprox(QtQ)); + + // Q to dense + DenseMat dQ; + dQ = solver.matrixQ(); + VERIFY_IS_APPROX(Q, dQ); } void test_sparseqr() { -- cgit v1.2.3