[Numpy-discussion] passing a C array to embedded Python from C code
Thu Oct 30 03:08:11 CDT 2008
> Does this approach make sense? Is there a better way to go about it?
> Maybe calling a custom module from the Python code that does the C
> array to NumPy translation using Cython/pyrex/swig/etc. Would it be
> possible to use the same C arrays from here without copying them?
Your case seems to fit the array interface. The goal is to create a C
structure with some additional information that Numpy can understand,
and then your array will be treated as a Numpy array. If you can
follow a French tutorial, you can go on
to have a skeletton for your issue.
Information System Engineer, Ph.D.
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
More information about the Numpy-discussion