[Numpy-discussion] Fwd: Performance feature for np.isin and np.in1d
miles.cranmer at gmail.com
Mon Oct 1 14:36:14 EDT 2018
(Not sure what the right list is for this)
I have started a PR for a "fast_integers" flag for np.isin and np.in1d
which greatly increases performance when both arrays are integral. It works
by creating a boolean array with elements set to 1 where the parent array
(ar2) has elements and 0 otherwise. This array is then indexed by the child
array (ar1) to create the output.
Thoughts on this? Please let me know if you have any questions about my
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion