aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/corners.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-20 17:37:56 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-20 17:37:56 +0200
commitf1679c7185471289afaf702a45e336849d20a81a (patch)
tree2d6d649c8d0ae0985dfeaae2fdf2da47294264ae /test/corners.cpp
parente402d34407226d9c2c5dfc14ef5d6dbf53ee3c8e (diff)
Utilize Index in all unit tests.
Diffstat (limited to 'test/corners.cpp')
-rw-r--r--test/corners.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/corners.cpp b/test/corners.cpp
index 3baea1b96..70d12fded 100644
--- a/test/corners.cpp
+++ b/test/corners.cpp
@@ -30,11 +30,12 @@
template<typename MatrixType> void corners(const MatrixType& m)
{
- int rows = m.rows();
- int cols = m.cols();
+ typedef typename MatrixType::Index Index;
+ Index rows = m.rows();
+ Index cols = m.cols();
- int r = ei_random<int>(1,rows);
- int c = ei_random<int>(1,cols);
+ Index r = ei_random<Index>(1,rows);
+ Index c = ei_random<Index>(1,cols);
MatrixType matrix = MatrixType::Random(rows,cols);
const MatrixType const_matrix = MatrixType::Random(rows,cols);