[SciPy-user] numpy aligned memory
Stéfan van der Walt
Thu Mar 12 16:15:32 CDT 2009
Hi Sturla, Andrew
2009/3/12 Sturla Molden <firstname.lastname@example.org>:
> On 3/12/2009 4:05 PM, Andrew Straw wrote:
>> So, what's your take on having each row aligned? Is this also useful for
>> FFTW, for example? If so, we should perhaps come up with a better
>> routine for the cookbook.
> Ok, so here is how it could be done. It fails for a reason I'll
> attribute to a bug in NumPy.
I must be missing some subtlety. Why not just allocate a block of
memory, and create an array with the strides adjusted appropriately?
More information about the SciPy-user