[Numpy-tickets] [NumPy] #236: reduceat cornercase
NumPy
numpy-tickets at scipy.net
Mon Aug 7 07:44:30 CDT 2006
#236: reduceat cornercase
-----------------------------+----------------------------------------------
Reporter: martin_wiechert | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0 Release
Component: numpy.core | Version: devel
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
<operator>.reduceat does not handle repeated indices correctly. When an
index is repeated the neutral element of the operation should be returned.
In the example below [0, 10], not [1, 10], is expected.
{{{
In [1]:import numpy
In [2]:numpy.version.version
Out[2]:'1.0b1'
In [3]:a = numpy.arange (5)
In [4]:numpy.add.reduceat (a, (1,1))
Out[4]:array([ 1, 10])
}}}
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/236>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list