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

Robert Kern robert.kern at gmail.com
Fri Jul 7 00:47:59 EDT 2006


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
> 
>    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

The fact that there are a, b, c, d, and e makes me fully -1 on this. In the face 
of ambiguity, refuse the temptation to guess.

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

-1

> 3) .M  returns matrix version of array

-1

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

-1

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco





More information about the NumPy-Discussion mailing list