[Numpy-discussion] searchsorted bug

Charles R Harris charlesr.harris@gmail....
Thu Jan 31 11:50:40 CST 2008

On Jan 31, 2008 10:33 AM, James Philbin <philbinj@gmail.com> wrote:

> Hi,
> > In particular:
> >
> >  * All arrays are assumed contiguous on entry and both arr and key must
> be
> > of    <-----
> >  * the same comparable type. <-----
> In which case, this seems to be an overly strict implementation of
> searchsorted. Surely all that should be required is that the
> comparison function can take both types.

True. The problem is knowing when that is the case. The subroutine in
question is at the bottom of the heap and don't know nothin'. IIRC, it just
sits there and does the comparison by calling through a pointer with char*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080131/4209639b/attachment.html 

More information about the Numpy-discussion mailing list