[Numpy-discussion] Re: assert_array_equal scalar broadcast behaviour

2022-06-16 Thread Matti Picus
On 16/6/22 19:28, Jon Morris wrote: Hello all, I was recently tripped up by issue #9542 , where a call to assert_array_equal unexpectedly passed because a single scalar can be declared equal to an array if every value in the array is the same. I’

[Numpy-discussion] argmin/argmax underspecification?

2022-06-16 Thread TODD ANDERSON
The docs say "Returns the indices of the maximum values along an axis." When axis=None, I presume the implementation is actually "Returns the first index (assuming ravel ordering) of the maximum value." I also presume that people are now relying on the fact that it always returns the first suc

[Numpy-discussion] Speeding up isin1d and adding a "method" or similar

2022-06-16 Thread Sebastian Berg
Hi all, there is a PR to add a faster path to `np.isin`, that uses a look-up- table for all the elements that are included in the haystack (`test_elements`): https://github.com/numpy/numpy/pull/12065/files Such a table means that the memory overhead can be very significant, but the speedup a