From f1679c7185471289afaf702a45e336849d20a81a Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sun, 20 Jun 2010 17:37:56 +0200 Subject: Utilize Index in all unit tests. --- test/diagonal.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/diagonal.cpp') diff --git a/test/diagonal.cpp b/test/diagonal.cpp index 288d58c6e..50b341dfe 100644 --- a/test/diagonal.cpp +++ b/test/diagonal.cpp @@ -26,12 +26,14 @@ template void diagonal(const MatrixType& m) { + typedef typename MatrixType::Index Index; typedef typename MatrixType::Scalar Scalar; typedef typename MatrixType::RealScalar RealScalar; typedef Matrix VectorType; typedef Matrix RowVectorType; - int rows = m.rows(); - int cols = m.cols(); + + Index rows = m.rows(); + Index cols = m.cols(); MatrixType m1 = MatrixType::Random(rows, cols), m2 = MatrixType::Random(rows, cols); -- cgit v1.2.3