[Numpy-discussion] .data doesn't account for .transpose()?

David M. Cooke cookedm at physics.mcmaster.ca
Thu Mar 29 19:29:39 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charles R Harris wrote:
> On 3/29/07, Anne Archibald <peridot.faceted at gmail.com> wrote:
>>
> 
> I think the preferred names are C_CONTIGUOUS and F_CONTIGUOUS, for
> instance:
> 
> In [2]:eye(2).flags['C_CONTIGUOUS']
> Out[2]:True
> 
> In [3]:eye(2).T.flags['F_CONTIGUOUS']
> Out[3]:True
> 
> However, that may only be in svn at the moment. C_CONTIGUOUS is an alias
> for
> CONTIGUOUS and
> F_CONTIGUOUS is an alias for F. I think the new names are clearer than
> before.

FWIW, you can use attributes on flags too:

In [1]: eye(2).flags.c_contiguous
Out[1]: True
In [2]: eye(2).T.flags.f_contiguous
Out[2]: True

- --
|>|\/|<
/------------------------------------------------------------------\
|David M. Cooke              http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGDEvj+kNzddXW8YwRAi9oAKDQCLoZjAPSSMscVkvVsxpiHgU4LwCgzhjD
PQ4QdFd4urTaJND85u4ONbI=
=ZflB
-----END PGP SIGNATURE-----



More information about the NumPy-Discussion mailing list