Re: [Numpy-discussion] a.T

2006-12-12 Thread Pierre GM
On Tuesday 12 December 2006 19:02, Charles R Harris wrote: > Hi all, > > I'm curious about the error thrown when I use a.T as the left side of a > multiply assign. I Chuck, if you keep in mind that .T is a shortcut for .transpose(), you'll understand why you can't assign to a function call. _

[Numpy-discussion] a.T

2006-12-12 Thread Charles R Harris
Hi all, I'm curious about the error thrown when I use a.T as the left side of a multiply assign. In the following, I am multiplying each the rows of 'a' by the corresponding element of arange(n), i.e., broadcasting from the left. The result looks fine, but an error is thrown after the operation i