in isInvertible, determinant is compared directly with zero. there is a very good chance this value will be floating point, so we should define a class EPSILON around 1E-10 for value comparison.
there may be other locations such comparisons are made, hence the issue.
in
isInvertible
, determinant is compared directly with zero. there is a very good chance this value will be floating point, so we should define a classEPSILON
around1E-10
for value comparison.there may be other locations such comparisons are made, hence the issue.