[Numpy-discussion] "aligned" matrix / ctypes

Anne Archibald peridot.faceted at gmail.com
Wed Apr 23 17:49:53 EDT 2008


On 23/04/2008, Zachary Pincus <zachary.pincus at yale.edu> wrote:
> Hi,
>
>  Thanks a ton for the advice, Robert! Taking an array slice (instead of
>  trying to set up the strides, etc. myself) is a slick way of getting
>  this result indeed.

It's worth mentioning that there was some discussion of adding an
allocator for aligned arrays. It got sidetracked into a discussion of
SSE support for numpy, but there are all sorts of reasons to want
aligned arrays in numpy, as this post demonstrates. Seeing as it's
just a few lines worth of pure python, is anyone interested in writing
an aligned_empty() for numpy?

Anne



More information about the NumPy-Discussion mailing list