bug #1509: fix computeInverseWithCheck for complexes

This commit is contained in:
Gael Guennebaud
2018-04-04 15:47:46 +02:00
parent b903fa74fd
commit 2f833b1c64
2 changed files with 4 additions and 2 deletions

View File

@@ -404,7 +404,7 @@ inline void MatrixBase<Derived>::computeInverseWithCheck(
const RealScalar& absDeterminantThreshold
) const
{
RealScalar determinant;
Scalar determinant;
// i'd love to put some static assertions there, but SFINAE means that they have no effect...
eigen_assert(rows() == cols());
computeInverseAndDetWithCheck(inverse,determinant,invertible,absDeterminantThreshold);