aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparseqr.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-06-24 17:55:41 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-06-24 17:55:41 +0200
commit23535ed31c6e59136ec16f6c3ea7ba1357016cde (patch)
tree2395dd204a33e1047d6067eed5c52829db3788e1 /test/sparseqr.cpp
parent62f21e2d11b3c34d4e3bc94fe11e59f57489084a (diff)
Add unit test for dense = SparseQR::matrixQ
Diffstat (limited to 'test/sparseqr.cpp')
-rw-r--r--test/sparseqr.cpp5
1 files changed, 5 insertions, 0 deletions
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<typename Scalar> 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()
{