From cb11f2f8a644acbf9a408e8eef737bec122307a0 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sun, 20 Jun 2010 18:59:15 +0200 Subject: Fix compilation of some tests as well as more warnings. --- test/redux.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/redux.cpp') diff --git a/test/redux.cpp b/test/redux.cpp index 2dfe8cb4b..385174831 100644 --- a/test/redux.cpp +++ b/test/redux.cpp @@ -54,11 +54,11 @@ template void matrixRedux(const MatrixType& m) VERIFY_IS_APPROX(m1.real().minCoeff(), ei_real(minc)); VERIFY_IS_APPROX(m1.real().maxCoeff(), ei_real(maxc)); - // test sclice vectorization assuming assign is ok - int r0 = ei_random(0,rows-1); - int c0 = ei_random(0,cols-1); - int r1 = ei_random(r0+1,rows)-r0; - int c1 = ei_random(c0+1,cols)-c0; + // test slice vectorization assuming assign is ok + Index r0 = ei_random(0,rows-1); + Index c0 = ei_random(0,cols-1); + Index r1 = ei_random(r0+1,rows)-r0; + Index c1 = ei_random(c0+1,cols)-c0; VERIFY_IS_APPROX(m1.block(r0,c0,r1,c1).sum(), m1.block(r0,c0,r1,c1).eval().sum()); VERIFY_IS_APPROX(m1.block(r0,c0,r1,c1).mean(), m1.block(r0,c0,r1,c1).eval().mean()); VERIFY_IS_APPROX(m1.block(r0,c0,r1,c1).prod(), m1.block(r0,c0,r1,c1).eval().prod()); -- cgit v1.2.3