diff options
author | 2010-06-20 23:13:24 +0200 | |
---|---|---|
committer | 2010-06-20 23:13:24 +0200 | |
commit | bb46a453401fa4c79ce022a9861d7f7ed6a41047 (patch) | |
tree | 40a76e2c6fdf81f3459508075d6169418f3d42cb /test | |
parent | 69b50047d64aae5d1198210458147a3addabb387 (diff) |
Finally fixed the matrix function/exponential warning.
Index fixes.
Diffstat (limited to 'test')
-rw-r--r-- | test/nullary.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/nullary.cpp b/test/nullary.cpp index d46349991..9f08ec23a 100644 --- a/test/nullary.cpp +++ b/test/nullary.cpp @@ -49,11 +49,12 @@ bool equalsIdentity(const MatrixType& A) template<typename VectorType> void testVectorType(const VectorType& base) { + typedef typename ei_traits<VectorType>::Index Index; typedef typename ei_traits<VectorType>::Scalar Scalar; Scalar low = ei_random<Scalar>(-500,500); Scalar high = ei_random<Scalar>(-500,500); if (low>high) std::swap(low,high); - const int size = base.size(); + const Index size = base.size(); const Scalar step = (high-low)/(size-1); // check whether the result yields what we expect it to do |