diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-11-04 17:42:07 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-11-04 17:42:07 +0100 |
commit | 902750826b52de97f2cd48d91fcf4f70d874e93c (patch) | |
tree | 71fdeae27b0cd66ab9f56e9ed49fd9f9a8f969fe /test/sparse_basic.cpp | |
parent | f6b1deebab06dda60ffea454ead6b581a138b513 (diff) |
Add support for dense.cwiseProduct(sparse)
This also fixes a regression regarding (dense*sparse).diagonal()
Diffstat (limited to 'test/sparse_basic.cpp')
-rw-r--r-- | test/sparse_basic.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index 0c7d2c652..2d0f5819f 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp @@ -188,6 +188,8 @@ template<typename SparseMatrixType> void sparse_basic(const SparseMatrixType& re refM4.setRandom(); // sparse cwise* dense VERIFY_IS_APPROX(m3.cwiseProduct(refM4), refM3.cwiseProduct(refM4)); + // dense cwise* sparse + VERIFY_IS_APPROX(refM4.cwiseProduct(m3), refM4.cwiseProduct(refM3)); // VERIFY_IS_APPROX(m3.cwise()/refM4, refM3.cwise()/refM4); // test aliasing |