[NumPy-Tickets] [NumPy] #1859: Broadcasting fails for A *= B

NumPy Trac numpy-tickets@scipy....
Tue Jun 7 11:47:35 CDT 2011

#1859: Broadcasting fails for A *= B
  Reporter:  gerrit  |       Owner:  somebody   
      Type:  defect  |      Status:  closed     
  Priority:  normal  |   Milestone:  Unscheduled
 Component:  Other   |     Version:  devel      
Resolution:  fixed   |    Keywords:             
Changes (by mwiebe):

  * status:  new => closed
  * resolution:  => fixed


 The problem here is the error message, the error definitely should be
 happening. The broadcast shape is (2,1,2), with 4 elements (you can see
 that in your printout of A1 * A2). A1 *= A2 is saying to assign those 4
 elements to the 2 elements of A1, so is an invalid operation.

 I've fixed this on master in commit:fd9ef72d. Leaving it out of 1.6.x
 because it's an error message bug, not a functionality bug.

Ticket URL: <http://projects.scipy.org/numpy/ticket/1859#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list