diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-21 11:36:00 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-21 11:36:00 +0200 |
commit | dc6ad5e25b786ec6874158b33a77babf14d66941 (patch) | |
tree | f3ce86b00aa70851d35e7ac04e0f1209f9cfa55c /test/mapstride.cpp | |
parent | 5f65a89f49a6b9426b09d9b3ce7c31cf015c1879 (diff) |
More Index related stuff.
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); |