Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading