Skip to content
Snippets Groups Projects
Commit 3642bbaf authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

processing of NANs failed in 2.4.1 (bug fix)

parent 04493319
No related branches found
No related tags found
1 merge request!234M214003/develop
2024-06-12 Uwe Schulzweida
* processing of NANs failed in 2.4.1 (bug fix)
2024-06-04 Uwe Schulzweida
* delattribute: added wildcard support
......
......@@ -4,9 +4,15 @@ CDO NEWS
Improvement
New features:
New operators:
Fixed bugs:
Version 2.4.2 (21 Jun 2024):
New operators:
* delattribute: Delete attributes
Fixed bugs:
* processing of NANs failed in 2.4.1
Version 2.4.1 (21 May 2024):
......
......@@ -8,8 +8,8 @@
// compare
// clang-format off
const auto is_not_equal = [](auto a, auto b) noexcept { return (a < b || b < a); };
const auto is_equal = [](auto a, auto b) noexcept { return !(a < b || b < a); };
const auto dbl_is_not_equal = [](auto a, auto b) noexcept { return ((std::isnan(a) || std::isnan(b)) ? (std::isnan(a) && std::isnan(b)) : is_not_equal(a, b)); };
const auto is_equal = [](auto a, auto b) noexcept { return (a >= b && b >= a); };
const auto dbl_is_not_equal = [](auto a, auto b) noexcept { return ((std::isnan(a) || std::isnan(b)) ? !(std::isnan(a) && std::isnan(b)) : is_not_equal(a, b)); };
const auto dbl_is_equal = [](auto a, auto b) noexcept { return ((std::isnan(a) || std::isnan(b)) ? (std::isnan(a) && std::isnan(b)) : is_equal(a, b)); };
// clang-format on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment