[Numpy-discussion] Call for a vote on .M .A .T .H attributes

Sasha ndarray at mac.com
Thu Jul 6 23:53:31 CDT 2006


On 7/7/06, Travis Oliphant <oliphant.travis at ieee.org> wrote:
> 1) .T  Have some kind of .T attribute
>

-1 (but -0 if raises an error if ndim != 2)

>    If >0 on this then:
>
>    a) .T == .swapaxes(-2,-1)
>
>    b) .T == .transpose()
>
>    c) .T raises error for ndim > 2
>
>    d) .T returns (N,1) array for length (N,) array
>
>    e) .T returns self for ndim < 2
>

Write-in: f) .T raises error for ndim != 2
  (still <0)

>
> 2) .H  returns .T.conj()
>
-1

>
> 3) .M  returns matrix version of array
>
-1

>
> 4) .A  returns basearray (useful for sub-classes).
>
-1




More information about the Numpy-discussion mailing list