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/diagonalmatrices.cpp | |
parent | 5f65a89f49a6b9426b09d9b3ce7c31cf015c1879 (diff) |
More Index related stuff.
Diffstat (limited to 'test/diagonalmatrices.cpp')
-rw-r--r-- | test/diagonalmatrices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/diagonalmatrices.cpp b/test/diagonalmatrices.cpp index 2bc75ba1c..8408dda44 100644 --- a/test/diagonalmatrices.cpp +++ b/test/diagonalmatrices.cpp @@ -66,8 +66,8 @@ template<typename MatrixType> void diagonalmatrices(const MatrixType& m) sq_m1.transpose() = ldm1; VERIFY_IS_APPROX(sq_m1, ldm1.toDenseMatrix()); - int i = ei_random<int>(0, rows-1); - int j = ei_random<int>(0, cols-1); + Index i = ei_random<Index>(0, rows-1); + Index j = ei_random<Index>(0, cols-1); VERIFY_IS_APPROX( ((ldm1 * m1)(i,j)) , ldm1.diagonal()(i) * m1(i,j) ); VERIFY_IS_APPROX( ((ldm1 * (m1+m2))(i,j)) , ldm1.diagonal()(i) * (m1+m2)(i,j) ); |