extrema(x;dims::Int)
behavior with NaN
#43599
Labels
bug
Indicates an unexpected problem or unintended behavior
extrema(x;dims::Int)
behavior with NaN
#43599
https://discourse.julialang.org/t/extrema-x-dims-1-and-nans/73764
The
NaN
s are ignored except when they appear in the leading position. This behavior deviates from that ofminimum
/maximum
.There is no issue with
dims=:
, which is the default, since that routes through the generic iterator method rather than the per-dimension method.Tangentially related to #35308, but I'm filing a new issue since the manifestations are different and the fixes might be, too.
The text was updated successfully, but these errors were encountered: