Does anyone use transpose for anything besides two dimensional arrays? For arrays that aren't matrices at heart the meaning of transpose is pretty arbitrary, so the only virtue I see in having an attribute would be less typeing. So put it in the documentation. As an aside, being able to specify axis in dot might obviate many cases of *.T and *.H and make inner a special case.

>
> 1) .T  Have some kind of .T attribute

 +1

>
>    If >0 on this then:
>
>    a) .T == .swapaxes(-2,-1)

-1

>    b) .T == .transpose()

+1

>    c) .T raises error for ndim > 2
 
-1

>
>    d) .T returns (N,1) array for length (N,) array

-1

>    e) .T returns self for ndim < 2
 
+1

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

>
> 3) .M  returns matrix version of array

no opinion.

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

no opinion

Chuck


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to