[Numpy-discussion] access ndarray in C++
Stéfan van der Walt
stefan at sun.ac.za
Wed Apr 23 11:34:31 EDT 2008
2008/4/23 Tommy Grav <tgrav at mac.com>:
>
> On Apr 22, 2008, at 9:56 PM, Joris De Ridder wrote:
>
> >
> > On http://www.scipy.org/JorisDeRidder I've just put an example how I
> > passed multidimensional Numpy arrays to C++ using ctypes. Perhaps
> > it's helpful for your application. I didn't put it in the cookbook
> > yet, because I would first like to test it a bit more. Up to now I
> > didn't experience any bugs though.
> >
> > Joris
>
> As a total newbie in the field of extensions, where do I find
> ndarray.h and numpyctypes?
import numpy as np
print np.get_include()
numpyctypes is np.ctypeslib, I assume.
Regards
Stéfan
More information about the NumPy-Discussion
mailing list