[Numpy-discussion] numpy arrays, data allocation and SIMD alignement

Charles R Harris charlesr.harris@gmail....
Thu Aug 9 03:58:24 CDT 2007


On 8/9/07, David Cournapeau <david@ar.media.kyoto-u.ac.jp> wrote:
>
> Charles R Harris wrote:
> >
> > Ah, you want it in C.
> What would be the use to get SIMD aligned arrays in python ?


If I wanted a fairly specialized routine and didn't want to touch the guts
of numpy, I would pass the aligned array to a C function and use the data
pointer. The python code would be just a high level wrapper. You might even
be able to use ctypes to pass the pointer into a library function. It's not
necessary to code everything in C using the python C API.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070809/958430d7/attachment.html 


More information about the Numpy-discussion mailing list