diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-02-28 12:38:12 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-02-28 12:38:12 +0000 |
commit | 6907886a156c4b94ec7530351b271e1c1bc5b81b (patch) | |
tree | 9c9431ba83e0234e5f199031ed48915ad6365422 /test/miscmatrices.cpp | |
parent | c67e717404258d3625a74c67f50be34939af6d95 (diff) |
prefix global functions with ei_ as previous solution was rather
fragile. also fix compilation with g++ 4.3.
Diffstat (limited to 'test/miscmatrices.cpp')
-rw-r--r-- | test/miscmatrices.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/miscmatrices.cpp b/test/miscmatrices.cpp index 42f808b1a..70e77403d 100644 --- a/test/miscmatrices.cpp +++ b/test/miscmatrices.cpp @@ -39,7 +39,7 @@ template<typename MatrixType> void miscMatrices(const MatrixType& m) int rows = m.rows(); int cols = m.cols(); - int r = random<int>(0, rows-1), r2 = random<int>(0, rows-1), c = random<int>(0, cols-1); + int r = ei_random<int>(0, rows-1), r2 = ei_random<int>(0, rows-1), c = ei_random<int>(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)); |