From f7e73f1bf900346676e84a597a146b11dd7ac5dc Mon Sep 17 00:00:00 2001 From: Thomas Capricelli Date: Mon, 16 Nov 2009 04:20:13 +0100 Subject: don't be shy and test them all --- test/permutationmatrices.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/permutationmatrices.cpp') diff --git a/test/permutationmatrices.cpp b/test/permutationmatrices.cpp index c0353bc71..13b01cd83 100644 --- a/test/permutationmatrices.cpp +++ b/test/permutationmatrices.cpp @@ -64,10 +64,9 @@ template void permutationmatrices(const MatrixType& m) RightPermutationType rp(rv); MatrixType m_permuted = lp * m_original * rp; - int i = ei_random(0, rows-1); - int j = ei_random(0, cols-1); - - VERIFY_IS_APPROX(m_original(lv(i),j), m_permuted(i,rv(j))); + for (int i=0; i lm(lp); Matrix rm(rp); -- cgit v1.2.3