bug #1361: fix compilation issue in mat=perm.inverse()

This commit is contained in:
Gael Guennebaud
2016-12-13 23:10:27 +01:00
parent a432fc102d
commit c817ce3ba3
2 changed files with 9 additions and 1 deletions

View File

@@ -108,7 +108,14 @@ template<typename MatrixType> void permutationmatrices(const MatrixType& m)
rm = rp;
rm.col(i).swap(rm.col(j));
VERIFY_IS_APPROX(rm, rp2.toDenseMatrix().template cast<Scalar>());
}
}
{
// simple compilation check
Matrix<Scalar, Cols, Cols> A = rp;
Matrix<Scalar, Cols, Cols> B = rp.transpose();
VERIFY_IS_APPROX(A, B.transpose());
}
}
template<typename T>