ffig icon indicating copy to clipboard operation
ffig copied to clipboard

Enable bindings of numpy arrays to C-arrays

Open erikarne opened this issue 6 years ago • 1 comments

No idea how difficult this would be ... :-)

We have C/C++ functions that interface with Python by wrapping C-arrays of doubles into Numpy arrays for return values as well as extracting the underlying C-array of a Numpy array for inputs.

This leads to a lot of boilerplate code in CPython. It would be great to be able to automatically bind C-arrays to Numpy arrays! :)

erikarne avatar Aug 16 '18 18:08 erikarne

Do you need this for ctypes bindings or boost::python bindings?

Do you have some sample C++ API and Python API you’d like to generate from it?

jbcoe avatar Aug 16 '18 19:08 jbcoe