[Numpy-discussion] numpy array to C API
sd at syntonetic.com
Wed Mar 20 09:59:33 EDT 2013
I'm extending our existing C/C++ software with Python/Numpy in order to do extra number crunching.
It already works like a charm calling python with the C API <Python.h>.
But what is the proper way of passing double arrays returned from Python/Numpy routines back to C?
I came across PyArray but I can see in the compiler warnings, it is deprecated and I don't wanna start from scratch on legacy facilities.
Going forward, what is the intended way of doing this with neat code on both sides and with a minimum of mem copy gymnastics overhead?
thanks in advance
More information about the NumPy-Discussion