diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-20 18:59:15 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-20 18:59:15 +0200 |
commit | cb11f2f8a644acbf9a408e8eef737bec122307a0 (patch) | |
tree | febc2e53cf4ca10309ef0901eadcbd9625f31b32 /test/redux.cpp | |
parent | f1679c7185471289afaf702a45e336849d20a81a (diff) |
Fix compilation of some tests as well as more warnings.
Diffstat (limited to 'test/redux.cpp')
-rw-r--r-- | test/redux.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<typename MatrixType> 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<int>(0,rows-1); - int c0 = ei_random<int>(0,cols-1); - int r1 = ei_random<int>(r0+1,rows)-r0; - int c1 = ei_random<int>(c0+1,cols)-c0; + // test slice vectorization assuming assign is ok + Index r0 = ei_random<Index>(0,rows-1); + Index c0 = ei_random<Index>(0,cols-1); + Index r1 = ei_random<Index>(r0+1,rows)-r0; + Index c1 = ei_random<Index>(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()); |