[SciPy-user] numpy aligned memory

Sturla Molden sturla@molden...
Thu Mar 12 16:29:47 CDT 2009


> It seems to work. If you find bugs, please correct.

Speaking of which, the first if-else block should probably contain this,
so it does not fail on a length 1 tupe as shape.

else:
        if len(shape) == 1:
            return aligned_empty(shape, boundary=boundary,
                        dtype=dtype, order=order, imagealign=imagealign)

Sturla Molden

-------------- next part --------------
A non-text attachment was scrubbed...
Name: alignedarray.py
Type: text/x-python
Size: 3248 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-user/attachments/20090312/6e1d32da/attachment-0001.py 


More information about the SciPy-user mailing list