mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-21 14:43:26 +00:00
Add MinGW support
This commit is contained in:
@@ -380,7 +380,9 @@ namespace omath
|
||||
{
|
||||
const auto det = determinant();
|
||||
|
||||
if (det == 0)
|
||||
constexpr Type det_epsilon = static_cast<Type>(1e-6);
|
||||
|
||||
if (std::abs(det) < det_epsilon)
|
||||
return std::nullopt;
|
||||
|
||||
const auto transposed_mat = transposed();
|
||||
|
||||
Reference in New Issue
Block a user