[Numpy-discussion] Call for a vote on .M .A .T .H attributes
Sebastian Haase
haase at msg.ucsf.edu
Fri Jul 7 21:37:32 EDT 2006
Travis Oliphant wrote:
> Travis Oliphant wrote:
>> This is a call for a vote on each of the math attributes. Please post
>> your vote as
>>
>> +1 : support
>> +0 : don't care so go ahead
>> -0 : don't care so why do it
>> -1 : against
>>
>> Vote on the following issues separately:
>>
>>
>>
>> 1) .T Have some kind of .T attribute
>>
>>
+1
>> If >0 on this then:
>>
>> a) .T == .swapaxes(-2,-1)
>>
+1
>> b) .T == .transpose()
>>
-0
>> 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()
>>
>>
>>
+0
>
>> 3) .M returns matrix version of array
>>
>>
+0
>> 4) .A returns basearray (useful for sub-classes).
>>
+0
Sebastian Haase
More information about the NumPy-Discussion
mailing list