aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/permutationmatrices.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-16 15:07:33 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-11-16 15:07:33 -0500
commite8d0dbf82e224fa57f0741bef58c3f57ec9f7895 (patch)
tree9000372e2e14205dc433aabc52068e30059fd2e7 /test/permutationmatrices.cpp
parent8a1bada43d64820f5e973d1692cc51eaf865bf76 (diff)
PermutationMatrix:
* make multiplication order not be reversed * release-quality documentation
Diffstat (limited to 'test/permutationmatrices.cpp')
-rw-r--r--test/permutationmatrices.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/permutationmatrices.cpp b/test/permutationmatrices.cpp
index ec3a8541c..c4affc795 100644
--- a/test/permutationmatrices.cpp
+++ b/test/permutationmatrices.cpp
@@ -66,7 +66,7 @@ template<typename MatrixType> void permutationmatrices(const MatrixType& m)
for (int i=0; i<rows; i++)
for (int j=0; j<cols; j++)
- VERIFY_IS_APPROX(m_original(lv(i),j), m_permuted(i,rv(j)));
+ VERIFY_IS_APPROX(m_permuted(lv(i),j), m_original(i,rv(j)));
Matrix<Scalar,Rows,Rows> lm(lp);
Matrix<Scalar,Cols,Cols> rm(rp);
@@ -80,7 +80,7 @@ template<typename MatrixType> void permutationmatrices(const MatrixType& m)
randomPermutationVector(lv2, rows);
LeftPermutationType lp2(lv2);
Matrix<Scalar,Rows,Rows> lm2(lp2);
- VERIFY_IS_APPROX((lp*lp2).toDenseMatrix().template cast<Scalar>(), lm2*lm);
+ VERIFY_IS_APPROX((lp*lp2).toDenseMatrix().template cast<Scalar>(), lm*lm2);
}
void test_permutationmatrices()