changed epsilon

This commit is contained in:
2025-12-19 23:43:03 +03:00
parent ce21c217f1
commit 52ca23383d

View File

@@ -380,9 +380,7 @@ namespace omath
{ {
const auto det = determinant(); const auto det = determinant();
constexpr Type det_epsilon = static_cast<Type>(1e-6); if (std::abs(det) < std::numeric_limits<Type>::epsilon())
if (std::abs(det) < det_epsilon)
return std::nullopt; return std::nullopt;
const auto transposed_mat = transposed(); const auto transposed_mat = transposed();