pydata / bottleneck

Fast NumPy array functions written in C
BSD 2-Clause "Simplified" License
1.03k stars 101 forks source link

NaN-aware sum-of-squares (nanss) #330

Open rhandberg opened 4 years ago

rhandberg commented 4 years ago

Bottleneck already includes a fast sum-of-squares function (ss), but no NaN-aware counterpart exists. Wouldn't it make sense to add a nanss function?

qwhelan commented 4 years ago

Seems straightforward enough. I'm trying to pin down the exact casting behavior of the old scipy.stats.ss() (seeing some discrepancies with hypothesis fuzz testing), but once that's nailed down a nanss should be trivial.

Thanks for raising!