diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-12-03 23:49:37 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-12-03 23:49:37 +0100 |
commit | 91e392a042ca8d40e460e5cf51d447bcce7a43d4 (patch) | |
tree | 6c38e1b0121cb70976f0cfb96be5e5575d94b9e7 /test/sparse_basic.cpp | |
parent | a09cc5d4c014e517ef766b3ff0e535ad8d9a6dc9 (diff) |
add ReverseInnerIterators to loop over the elements in reverse order,
and partly fix bug #356 (issue in trisolve for upper-column major))
Diffstat (limited to 'test/sparse_basic.cpp')
-rw-r--r-- | test/sparse_basic.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index c566bd957..a3a6086cf 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp @@ -198,6 +198,9 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re VERIFY_IS_APPROX(m1.col(0).dot(refM2.row(0)), refM1.col(0).dot(refM2.row(0))); + VERIFY_IS_APPROX(m1.conjugate(), refM1.conjugate()); + VERIFY_IS_APPROX(m1.real(), refM1.real()); + refM4.setRandom(); // sparse cwise* dense VERIFY_IS_APPROX(m3.cwiseProduct(refM4), refM3.cwiseProduct(refM4)); |