[Matrix-SIG] broadcast rules

Janko Hauser jhauser@ifm.uni-kiel.de
Thu, 19 Nov 1998 09:26:04 +0100 (CET)


Broadcasting doesn't really exist for assignment. Only scalars can be
broadcasted. 

So this also doesn't work:

>>> a[:]=array([2])
Traceback (innermost last):
  File "<console>", line 1, in ?
ValueError: matrices are not aligned for copy

But this does:
>>> a[:]=3
>>> a
array([[3, 3],
       [3, 3],
       [3, 3],
       [3, 3]])

So the answer to your question is ``Yes''

__Janko