inaos / iron-array

2 stars 0 forks source link

Nan reductions are returning nan when should be zero #593

Closed FrancescAlted closed 2 years ago

FrancescAlted commented 2 years ago

Here it is an example:

In: ia.nansum(ia.full((2,), np.nan))
Out: nan

whereas NumPy:

In: np.nansum([np.nan, np.nan])
Out: 0.0