diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-02-25 15:31:15 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-02-25 15:31:15 +0100 |
commit | d9ca0c0d3643f4b777de686a2c0cddde075aa063 (patch) | |
tree | 67d338c4e399fe8607d1156f893cde43e0235809 /test/permutationmatrices.cpp | |
parent | 77c922bf051862b240d841c025f6c388c776463e (diff) |
optimize inverse permutations
Diffstat (limited to 'test/permutationmatrices.cpp')
-rw-r--r-- | test/permutationmatrices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/permutationmatrices.cpp b/test/permutationmatrices.cpp index 0ef0a371a..ae1bd8b85 100644 --- a/test/permutationmatrices.cpp +++ b/test/permutationmatrices.cpp @@ -51,7 +51,7 @@ template<typename MatrixType> void permutationmatrices(const MatrixType& m) typedef Matrix<int, Rows, 1> LeftPermutationVectorType; typedef PermutationMatrix<Cols> RightPermutationType; typedef Matrix<int, Cols, 1> RightPermutationVectorType; - + int rows = m.rows(); int cols = m.cols(); @@ -72,7 +72,7 @@ template<typename MatrixType> void permutationmatrices(const MatrixType& m) Matrix<Scalar,Cols,Cols> rm(rp); VERIFY_IS_APPROX(m_permuted, lm*m_original*rm); - + VERIFY_IS_APPROX(lp.inverse()*m_permuted*rp.inverse(), m_original); VERIFY((lp*lp.inverse()).toDenseMatrix().isIdentity()); |