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

Paulo Jose da Silva e Silva pjssilva at ime.usp.br
Fri Jul 7 09:13:59 EDT 2006


Em Qui, 2006-07-06 às 22:26 -0600, Travis Oliphant escreveu:
> 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)
> 

+0

>    b) .T == .transpose()
> 

-0

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

+0

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

+0

>    e) .T returns self for ndim < 2

-1

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

+0 

> 3) .M  returns matrix version of array
> 

-1

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

+0

Paulo
-- 
Paulo José da Silva e Silva 
Professor Assistente do Dep. de Ciência da Computação
(Assistant Professor of the Computer Science Dept.)
Universidade de São Paulo - Brazil

e-mail: pjssilva at ime.usp.br        Web: http://www.ime.usp.br/~pjssilva

Teoria é o que não entendemos o    (Theory is something we don't)
suficiente para chamar de prática. (understand well enough to call) 
                                   (practice)







More information about the NumPy-Discussion mailing list