diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-20 17:37:56 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-20 17:37:56 +0200 |
commit | f1679c7185471289afaf702a45e336849d20a81a (patch) | |
tree | 2d6d649c8d0ae0985dfeaae2fdf2da47294264ae /test/miscmatrices.cpp | |
parent | e402d34407226d9c2c5dfc14ef5d6dbf53ee3c8e (diff) |
Utilize Index in all unit tests.
Diffstat (limited to 'test/miscmatrices.cpp')
-rw-r--r-- | test/miscmatrices.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/miscmatrices.cpp b/test/miscmatrices.cpp index 0adccf5ce..b14bca61c 100644 --- a/test/miscmatrices.cpp +++ b/test/miscmatrices.cpp @@ -29,14 +29,14 @@ template<typename MatrixType> void miscMatrices(const MatrixType& m) /* this test covers the following files: DiagonalMatrix.h Ones.h */ - + typedef typename MatrixType::Index Index; typedef typename MatrixType::Scalar Scalar; typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; typedef Matrix<Scalar, 1, MatrixType::ColsAtCompileTime> RowVectorType; - int rows = m.rows(); - int cols = m.cols(); + Index rows = m.rows(); + Index cols = m.cols(); - int r = ei_random<int>(0, rows-1), r2 = ei_random<int>(0, rows-1), c = ei_random<int>(0, cols-1); + Index r = ei_random<Index>(0, rows-1), r2 = ei_random<Index>(0, rows-1), c = ei_random<Index>(0, cols-1); VERIFY_IS_APPROX(MatrixType::Ones(rows,cols)(r,c), static_cast<Scalar>(1)); MatrixType m1 = MatrixType::Ones(rows,cols); VERIFY_IS_APPROX(m1(r,c), static_cast<Scalar>(1)); |