Message395561
The idea of math.ieee754_total_order looks interesting, but how would it work with min/max?
In https://grouper.ieee.org/groups/msc/ANSI_IEEE-Std-754-2019/background/minNum_maxNum_Removal_Demotion_v3.pdf there is a comparison of several standards and implementations of symmetric and associative min/max. There are two options: propagate NaN and ignore it (treat it as missing data). It differs between different standards and implementations but in particular standard or implementation the same rule is used for min and max.
* If ieee754_total_order(NAN) < ieee754_total_order(1), then min(1, NAN) -> NAN ("propagate") and max(1, NAN) -> 1 ("missing data").
* If ieee754_total_order(NAN) > ieee754_total_order(1), then min(1, NAN) -> 1 ("missing data") and max(1, NAN) -> NAN ("propagate"). |
|
Date |
User |
Action |
Args |
2021-06-10 18:29:46 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, mark.dickinson, steven.daprano, Dennis Sweeney, joel.larose |
2021-06-10 18:29:46 | serhiy.storchaka | set | messageid: <1623349786.57.0.282829849738.issue44370@roundup.psfhosted.org> |
2021-06-10 18:29:46 | serhiy.storchaka | link | issue44370 messages |
2021-06-10 18:29:46 | serhiy.storchaka | create | |
|