[Numpy-discussion] Superfluous array transpose (cf. ticket #1054)

Pauli Virtanen pav@iki...
Sun Mar 15 15:51:29 CDT 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