[Numpy-discussion] Superfluous array transpose (cf. ticket #1054)

Pearu Peterson pearu@cens.ioc...
Mon Mar 16 11:54:38 CDT 2009

On Mon, March 16, 2009 4:05 pm, Sturla Molden wrote:
> On 3/16/2009 9:27 AM, Pearu Peterson wrote:
>> If a operation produces new array then the new array should have the
>> storage properties of the lhs operand.
> That would not be enough, as 1+a would behave differently from a+1. The
> former would change storage order and the latter would not.

Actually, 1+a would be handled by __radd__ method and hence
the storage order would be defined by the rhs (lhs of the __radd__ method).

> Broadcasting arrays adds futher to the complexity of the problem.

I guess, similar rules should be applied to storage order then.


More information about the Numpy-discussion mailing list