Determinant of integer matrix
With Eigen::Matrix<int,5,5>
, m.determinant()
fails to compile in PartialPivLU:
EIGEN_STATIC_ASSERT(!Eigen::NumTraits::IsInteger, THIS_FUNCTION_IS_NOT_FOR_INTEGER_NUMERIC_TYPES)
But I did not particularly ask for an LU decomposition, all I want is the determinant (actually I mostly care about signDeterminant), which is perfectly well defined for integer matrices. With matrices of size at most 4x4, it compiles thanks to the special code for small matrices. However, I would like for it to work for square matrices of arbitrary size.