diff options
Diffstat (limited to 'test/mapstride.cpp')
-rw-r--r-- | test/mapstride.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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<typename VectorType> 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<Scalar>(arraysize); @@ -68,7 +69,7 @@ template<typename MatrixType> 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<Scalar>(arraysize); |