Extrema(x,dims=1) and NaNs

It seems extrema(x,dims=1) silently drops NaNs - and I cannot find that documented. (As a reference, minimum does not.) Did I miss something?

Example

x = [1,NaN,3]
println(extrema(x))
println(extrema(x,dims=1))

gives

(NaN, NaN)
[(1.0, 3.0)]   
2 Likes

Looks like a bug to me. I went ahead and opened issue #43599.

1 Like