[NumPy-Tickets] [NumPy] #803: Assignment problem on matrix advanced selection

NumPy Trac numpy-tickets@scipy....
Wed Mar 23 17:37:42 CDT 2011


#803: Assignment problem on matrix advanced selection
---------------------------+------------------------------------------------
 Reporter:  jprey@…        |       Owner:  somebody   
     Type:  defect         |      Status:  new        
 Priority:  normal         |   Milestone:  Unscheduled
Component:  numpy.core     |     Version:  devel      
 Keywords:                 |  
---------------------------+------------------------------------------------
Changes (by mwiebe):

  * version:  1.0.4 => devel
  * milestone:  => Unscheduled


Comment:

 This is a matrix problem that's still there. A workaround is to do this:

 {{{
 In [47]: m = numpy.matrix([[1, 2], [3, 4]])

 In [48]: m[[0, 0], [0, 1]] = numpy.array([-1, -2])
 }}}

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


More information about the NumPy-Tickets mailing list