aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nomalloc.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-12-10 22:15:22 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-12-10 22:15:22 +0100
commit9facdaf7b9fa65d7f669af0bfabd34e23698f446 (patch)
tree13151c4dcc9e4be6de01a7c539fd4d6a180d0d97 /test/nomalloc.cpp
parent7caf751fddf51aacb1a2fbea8f2a92bd3492b0e1 (diff)
some compilation fixes
Diffstat (limited to 'test/nomalloc.cpp')
-rw-r--r--test/nomalloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp
index 1a917192b..12b09efa2 100644
--- a/test/nomalloc.cpp
+++ b/test/nomalloc.cpp
@@ -64,7 +64,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.cwise() * m1.block(0,0,rows,cols), m1.cwise() * m1);
+ VERIFY_IS_APPROX(m1.cwise() * m1.block(0,0,rows,cols), m1.array()*m1);
if (MatrixType::RowsAtCompileTime<EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD) {
// If the matrices are too large, we have better to use the optimized GEMM
// routines which allocates temporaries. However, on some platforms