diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-09-22 23:33:28 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-09-22 23:33:28 +0200 |
commit | ff46ec0f240ef84e2293b33b265c703e9b765c2e (patch) | |
tree | d7be930881e5c9a4dd9d2e0e4109f02235b1e2e4 /test/sparse_basic.cpp | |
parent | ae514ddfe561ef220bc9bbf8c0b7b5005b60d9c8 (diff) |
bug #881: make SparseMatrixBase::isApprox(SparseMatrixBase) exploits sparse computations instead of converting the operands to dense matrices.
Diffstat (limited to 'test/sparse_basic.cpp')
-rw-r--r-- | test/sparse_basic.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index c86534bad..e5b6d5a0a 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp @@ -304,6 +304,10 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re VERIFY_IS_APPROX(m2.transpose(), refMat2.transpose()); VERIFY_IS_APPROX(SparseMatrixType(m2.adjoint()), refMat2.adjoint()); + + // check isApprox handles opposite storage order + typename Transpose<SparseMatrixType>::PlainObject m3(m2); + VERIFY(m2.isApprox(m3)); } |