Utilize Index in all unit tests.

This commit is contained in:
Hauke Heibel
2010-06-20 17:37:56 +02:00
parent e402d34407
commit f1679c7185
54 changed files with 222 additions and 163 deletions

View File

@@ -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);