From dc6ad5e25b786ec6874158b33a77babf14d66941 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Mon, 21 Jun 2010 11:36:00 +0200 Subject: More Index related stuff. --- test/mapstride.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/mapstride.cpp') diff --git a/test/mapstride.cpp b/test/mapstride.cpp index ff6e71a66..072b2134c 100644 --- a/test/mapstride.cpp +++ b/test/mapstride.cpp @@ -26,13 +26,14 @@ template void map_class_vector(const VectorType& m) { + typedef typename VectorType::Index Index; typedef typename VectorType::Scalar Scalar; - int size = m.size(); + Index size = m.size(); VectorType v = VectorType::Random(size); - int arraysize = 3*size; + Index arraysize = 3*size; Scalar* array = ei_aligned_new(arraysize); @@ -68,7 +69,7 @@ template void map_class_matrix(const MatrixType& _m) MatrixType m = MatrixType::Random(rows,cols); - int arraysize = 2*(rows+4)*(cols+4); + Index arraysize = 2*(rows+4)*(cols+4); Scalar* array = ei_aligned_new(arraysize); -- cgit v1.2.3