[SciPy-User] where is searchsorted implementation?

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


On Mon, Dec 5, 2011 at 7:32 PM, Charles R Harris
<charlesr.harris at gmail.com>wrote:

>
>
> 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.
>
>
Hmm, but it might not be too difficult to put together a function index
using ctags or doxygen.

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


More information about the SciPy-User mailing list