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

2017-05-15 Thread Peter Creasey
> From: Stephan Hoyer > > I like the idea of a strategy keyword argument. strategy='auto' leaves the > door open for future improvements, e.g., if we ever add hash tables to > numpy. > > For the algorithm, I think we actually want to sort the needles array as > well in most (all?) cases. > > If ha

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

2017-05-15 Thread Stephan Hoyer
I like the idea of a strategy keyword argument. strategy='auto' leaves the door open for future improvements, e.g., if we ever add hash tables to numpy. For the algorithm, I think we actually want to sort the needles array as well in most (all?) cases. If haystack is also sorted, advancing thorou

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

2017-05-15 Thread Nathaniel Smith
On May 9, 2017 9:47 AM, "Martin Spacek" wrote: 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

Re: [Numpy-discussion] UC Berkeley hiring developers to work on NumPy

2017-05-15 Thread Benjamin Root
Great news, Nathaniel! It was a huge boost to matplotlib a couple of years ago when we got an FTE, even if it was just for a few months. While that effort didn't directly produce any new features, we were able to overhaul some very old parts of the codebase. Probably why the effort was so successfu

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 finding

Re: [Numpy-discussion] UC Berkeley hiring developers to work on NumPy

2017-05-15 Thread Matthew Brett
Hi, On Sun, May 14, 2017 at 10:56 PM, Charles R Harris wrote: > > > On Sat, May 13, 2017 at 11:45 PM, Nathaniel Smith wrote: >> >> Hi all, >> >> As some of you know, I've been working for... quite some time now to >> try to secure funding for NumPy. So I'm excited that I can now >> officially an