From fa923102b8d6be9d9a1d04544884aace997db20e Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 19 Dec 2025 23:43:03 +0300 Subject: [PATCH] changed epsilon --- include/omath/linear_algebra/mat.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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();