From c817ce3ba3f5fcc9cc52e761df2b4f4d20b0d336 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 13 Dec 2016 23:10:27 +0100 Subject: bug #1361: fix compilation issue in mat=perm.inverse() --- test/permutationmatrices.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/permutationmatrices.cpp') diff --git a/test/permutationmatrices.cpp b/test/permutationmatrices.cpp index 41aa57d6d..70b469ebc 100644 --- a/test/permutationmatrices.cpp +++ b/test/permutationmatrices.cpp @@ -108,7 +108,14 @@ template void permutationmatrices(const MatrixType& m) rm = rp; rm.col(i).swap(rm.col(j)); VERIFY_IS_APPROX(rm, rp2.toDenseMatrix().template cast()); - } + } + + { + // simple compilation check + Matrix A = rp; + Matrix B = rp.transpose(); + VERIFY_IS_APPROX(A, B.transpose()); + } } template -- cgit v1.2.3