[MATRIX-SIG] Weird bug

Janko Hauser jhauser@ifm.uni-kiel.de
Sat, 30 Aug 1997 18:15:36 +0200 (CEST)


Here is a variation wich exhibits not this bug.

>>> a = array([[1,2],[3,4]])
>>> b=zeros(a.shape)
>>> add(a, transpose(a), b)
array([[2, 5],
       [5, 8]])
>>> 

One additional note. I find it very strange to write in a program:
b=add(a, transpose(a), b)

although I understand the mechanismen why this must be done. But is
there a way around this?

__Janko


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________