Re: [Numpy-discussion] searchsorted descending arrays

2013-05-07 Thread Benjamin Root
On Mon, May 6, 2013 at 7:16 PM, Nathaniel Smith wrote: > On Mon, May 6, 2013 at 6:54 PM, Bago wrote: > > I submitted a patch a little while ago, > > https://github.com/numpy/numpy/pull/3107, which gave the searchsorted > > function the ability to search arrays sorted in descending order. At the

Re: [Numpy-discussion] searchsorted descending arrays

2013-05-06 Thread Nathaniel Smith
On Mon, May 6, 2013 at 6:54 PM, Bago wrote: > I submitted a patch a little while ago, > https://github.com/numpy/numpy/pull/3107, which gave the searchsorted > function the ability to search arrays sorted in descending order. At the > time my approach was to detect the sortorder of the array by c

[Numpy-discussion] searchsorted descending arrays

2013-05-06 Thread Bago
I submitted a patch a little while ago, https://github.com/numpy/numpy/pull/3107, which gave the searchsorted function the ability to search arrays sorted in descending order. At the time my approach was to detect the sortorder of the array by comparing the first and last elements. This works pret