diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-07-08 00:49:10 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-07-08 00:49:10 +0000 |
commit | f5791eeb7054b78ded6eb080e9712651da6c6a34 (patch) | |
tree | 414c138b050003fdc32e0cebcc6f39ea1e94dc7f /test/nomalloc.cpp | |
parent | c910c517b34b147894e7fa62cb9602cc19e0669b (diff) |
the big Array/Cwise rework as discussed on the mailing list. The new API
can be seen in Eigen/src/Core/Cwise.h.
Diffstat (limited to 'test/nomalloc.cpp')
-rw-r--r-- | test/nomalloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp index d6c566bef..d9653588d 100644 --- a/test/nomalloc.cpp +++ b/test/nomalloc.cpp @@ -75,7 +75,7 @@ template<typename MatrixType> void nomalloc(const MatrixType& m) VERIFY_IS_APPROX((m1+m2)*s1, s1*m1+s1*m2); VERIFY_IS_APPROX((m1+m2)(r,c), (m1(r,c))+(m2(r,c))); - VERIFY_IS_APPROX(m1.cwiseProduct(m1.block(0,0,rows,cols)), m1.cwiseProduct(m1)); + VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1); VERIFY_IS_APPROX((m1*m1.transpose())*m2, m1*(m1.transpose()*m2)); } |