Re: [Numpy-discussion] Proposal: np.search() to complement np.searchsorted()

2017-05-15 Thread Martin Spacek
On 2017-05-09 07:39 PM, Stephan Hoyer wrote: On Tue, May 9, 2017 at 9:46 AM, Martin Spacek mailto:nu...@mspacek.mm.st>> wrote: Looking at my own habits and uses, it seems to me that finding the indices of matching values of one array in another is a more common use case than f

[Numpy-discussion] Proposal: np.search() to complement np.searchsorted()

2017-05-09 Thread Martin Spacek
Hello, I've opened up a pull request to add a function called np.search(), or something like it, to complement np.searchsorted(): https://github.com/numpy/numpy/pull/9055 There's also this issue I opened before starting the PR: https://github.com/numpy/numpy/issues/9052 Proposed API changes