[Numpy-discussion] Numpy 1.9.1, zeros and alignement

Charles R Harris charlesr.harris at gmail.com
Tue Nov 18 13:26:37 EST 2014


On Tue, Nov 18, 2014 at 11:20 AM, David Cournapeau <cournape at gmail.com>
wrote:

> Hi,
>
> I have not followed closely the changes that happen in 1.9.1, but was
> surprised by the following:
>
> x = np.zeros(12, "d")
> assert x.flags.aligned # fails
>
> This is running numpy 1.9.1 built on windows with VS 2008. Is it expected
> that zeros may return a non-aligned array ?
>

The alignment requirements may have become stricter, Julian would know. Is
this on 32 or 64 Windows?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20141118/1a7e404c/attachment.html>


More information about the NumPy-Discussion mailing list