Fix compilation of int*complex with gcc

This commit is contained in:
Gael Guennebaud 2015-02-16 19:18:12 +01:00
parent 9f49f00feb
commit 3373c903b3

View File

@ -345,7 +345,7 @@ class SparseLU : public SparseSolverBase<SparseLU<_MatrixType,_OrderingType> >,
}
}
}
return det * (m_detPermR * m_detPermC);
return (m_detPermR * m_detPermC) > 0 ? det : -det;
}
protected: