Open numpy-gitbot opened 12 years ago
atmention:mwiebe wrote on 2011-03-23
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])
Milestone changed to Unscheduled
by atmention:mwiebe on 2011-03-23
Original ticket http://projects.scipy.org/numpy/ticket/803 on 2008-05-31 by trac user jprey@noos.fr, assigned to unknown.
I found a problem when assigning a matrix to a matrix advanced selection in numpy 1.0.4.
This is specific to assigning a matrix to a matrix advanced selection. The following examples all work fine:
Most surprisingly, the following example also works
I discovered this poblem while trying
I believe that if the integer advanced selection is fixed, the boolean advanced selection will also be corrected.