From 52ca23383db4f632366d90d9773543be8827f6a0 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();