[Numpy-discussion] Superfluous array transpose (cf. ticket #1054)
Pauli Virtanen
pav at iki.fi
Sun Mar 15 16:51:29 EDT 2009
Sun, 15 Mar 2009 19:57:10 +0100, Sturla Molden wrote:
> Regarding ticket #1054. What is the reason for this strange behaviour?
>
>>>> a = np.zeros((10,10),order='F')
>>>> a.flags
> C_CONTIGUOUS : False
> F_CONTIGUOUS : True
> OWNDATA : True
> WRITEABLE : True
> ALIGNED : True
> UPDATEIFCOPY : False
>>>> (a+1).flags
> C_CONTIGUOUS : True
> F_CONTIGUOUS : False
> OWNDATA : True
> WRITEABLE : True
> ALIGNED : True
> UPDATEIFCOPY : False
New numpy arrays are by default in C-order, I believe.
--
Pauli Virtanen
More information about the NumPy-Discussion
mailing list