NumPy 1.20 has been released
NumPy 1.20 has been released
Posted Feb 24, 2021 9:03 UTC (Wed) by quietbritishjim (subscriber, #114117)Parent article: NumPy 1.20 has been released
Isn't the new where argument:
np.any(ri < 3, where=ri%2 == 0)
the same as using the existing logical_and:
np.any(np.logical_and(ri < 3, ri%2 == 0))
? If so, is there any benefit to the new notation? I suppose perhaps speed? I see it's slightly more consise, but the composing two functions seems clearer to me and is much more flexible.
