Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the interp function in numpy.core.multiarray located?

Tags:

python

numpy

The source code for numpy.interp calls a compiled_interp function which is apparently the interp function imported from numpy.core.multiarray.

I went looking for this function but I can not find it inside that file.

What am I missing?

like image 309
Gabriel Avatar asked Oct 19 '25 01:10

Gabriel


1 Answers

The interp Python function of numpy.core.multiarray is exported in multiarraymodule.c. It is mapped to arr_interp which is a C function defined in compiled_base.c. The heart of the computation can be found here.

like image 73
Jérôme Richard Avatar answered Oct 21 '25 16:10

Jérôme Richard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!