commit | fa6d36e0f7453397627b5dd82acb64922b977686 | [log] [tgz] |
---|---|---|
author | Gael Guennebaud <g.gael@free.fr> | Thu Jul 22 15:57:01 2010 +0200 |
committer | Gael Guennebaud <g.gael@free.fr> | Thu Jul 22 15:57:01 2010 +0200 |
tree | 43691887912b5c0be82d1aac2b52558963ff75d8 | |
parent | 734469e43f37839f179a9f12915889f3df89d477 [diff] [blame] |
fix SparseView: clean the nested matrix type
diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index 3ebd592..8c93909 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp
@@ -250,6 +250,13 @@ VERIFY(countTrueNonZero==m2.nonZeros()); VERIFY_IS_APPROX(m2, refM2); } + + // test sparseView + { + DenseMatrix refMat2 = DenseMatrix::Zero(rows, rows); + SparseMatrixType m2(rows, rows); + VERIFY_IS_APPROX(m2.eval(), refMat2.sparseView().eval()); + } } void test_sparse_basic()