diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-12-10 22:00:35 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-12-10 22:00:35 +0100 |
commit | 7caf751fddf51aacb1a2fbea8f2a92bd3492b0e1 (patch) | |
tree | 2936cb411e9cbc9f92da91f9d53c886530e7b1e3 /test/linearstructure.cpp | |
parent | 8e05f9cfa1538d76a9d3e01e08ba565bd581806a (diff) |
adapt select, replicate and reverse
Diffstat (limited to 'test/linearstructure.cpp')
-rw-r--r-- | test/linearstructure.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp index f2ffc33bd..3e570f2a0 100644 --- a/test/linearstructure.cpp +++ b/test/linearstructure.cpp @@ -79,7 +79,7 @@ template<typename MatrixType> void linearStructure(const MatrixType& m) // use .block to disable vectorization and compare to the vectorized version VERIFY_IS_APPROX(m1+m1.block(0,0,rows,cols), m1+m1); - VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1); + VERIFY_IS_APPROX(m1.cwiseProduct(m1.block(0,0,rows,cols)), m1.cwiseProduct(m1)); VERIFY_IS_APPROX(m1 - m1.block(0,0,rows,cols), m1 - m1); VERIFY_IS_APPROX(m1.block(0,0,rows,cols) * s1, m1 * s1); } |