From 4716040703be1ee906439385d20475dcddad5ce3 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 25 Oct 2010 10:15:22 -0400 Subject: bug #86 : use internal:: namespace instead of ei_ prefix --- test/permutationmatrices.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/permutationmatrices.cpp') diff --git a/test/permutationmatrices.cpp b/test/permutationmatrices.cpp index 880cd87a9..b9b3bbbca 100644 --- a/test/permutationmatrices.cpp +++ b/test/permutationmatrices.cpp @@ -34,9 +34,9 @@ void randomPermutationVector(PermutationVectorType& v, typename PermutationVecto if(size == 1) return; for(Index n = 0; n < 3 * size; ++n) { - Index i = ei_random(0, size-1); + Index i = internal::random(0, size-1); Index j; - do j = ei_random(0, size-1); while(j==i); + do j = internal::random(0, size-1); while(j==i); std::swap(v(i), v(j)); } } @@ -108,17 +108,17 @@ template void permutationmatrices(const MatrixType& m) if(rows>1 && cols>1) { lp2 = lp; - Index i = ei_random(0, rows-1); + Index i = internal::random(0, rows-1); Index j; - do j = ei_random(0, rows-1); while(j==i); + do j = internal::random(0, rows-1); while(j==i); lp2.applyTranspositionOnTheLeft(i, j); lm = lp; lm.row(i).swap(lm.row(j)); VERIFY_IS_APPROX(lm, lp2.toDenseMatrix().template cast()); RightPermutationType rp2 = rp; - i = ei_random(0, cols-1); - do j = ei_random(0, cols-1); while(j==i); + i = internal::random(0, cols-1); + do j = internal::random(0, cols-1); while(j==i); rp2.applyTranspositionOnTheRight(i, j); rm = rp; rm.col(i).swap(rm.col(j)); -- cgit v1.2.3