Где находится фактический код для сортировки поиска numpy?Python

Программы на Python
Гость
Где находится фактический код для сортировки поиска numpy?

Сообщение Гость »


I am trying to find the actual code for numpy's search sorted. I looked at:

https://github.com/numpy/numpy/blob/v1. ... 1022-L1075

But the searchsorted function just returns:

Код: Выделить всё

_wrapfunc(a, 'searchsorted', v, side=side, sorter=sorter)

And at the top of the code,

Код: Выделить всё

_wrapfunc
is given by:

Код: Выделить всё

def _wrapfunc(obj, method, *args, **kwds): try:     return getattr(obj, method)(*args, **kwds)     ... 
Then I lose track. Where is the algorithm itself?


Источник: https://stackoverflow.com/questions/467 ... archsorted

Вернуться в «Python»