mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 07:23:26 +00:00
changed epsilon
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user