[SciPy-User] where is searchsorted implementation?

Charles R Harris charlesr.harris at gmail.com
Mon Dec 5 21:32:00 EST 2011


On Mon, Dec 5, 2011 at 7:19 PM, Gustavo Goretkin <gustavo.goretkin at gmail.com
> wrote:

> Hi folks,
> I see the searchsorted function in numpy/core/fromnumeric.py, but that
> function seems to call a method -- and I can't find the implementation
> of the method. Where is it and how can I find stuff like this in
> general?
>
>
The implementation is in numpy/core/src/multiarray/item_selection.c, the
method is in numpy/core/src/multiarray/methods.c. Generally, one needs to
start in methods.c and slowly track down the call chain. It can be a long
trek and grep is your best companion.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20111205/0c9621c4/attachment.html>


More information about the SciPy-User mailing list