diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index 6aeb147..f0a7aa4 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -380,9 +380,7 @@ namespace omath { const auto det = determinant(); - constexpr Type det_epsilon = static_cast(1e-6); - - if (std::abs(det) < det_epsilon) + if (std::abs(det) < std::numeric_limits::epsilon()) return std::nullopt; const auto transposed_mat = transposed();