Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable bindings of numpy arrays to C-arrays #446

Open
erikarne opened this issue Aug 16, 2018 · 1 comment
Open

Enable bindings of numpy arrays to C-arrays #446

erikarne opened this issue Aug 16, 2018 · 1 comment

Comments

@erikarne
Copy link

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! :)

@jbcoe
Copy link
Collaborator

jbcoe commented Aug 16, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants