[Numpy-tickets] [NumPy] #237: reduceat should handle outlier indices gracefully
NumPy
numpy-tickets at scipy.net
Tue Aug 8 08:49:24 CDT 2006
#237: reduceat should handle outlier indices gracefully
-----------------------------+----------------------------------------------
Reporter: martin_wiechert | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0 Release
Component: numpy.core | Version: devel
Severity: normal | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Comment (by martin_wiechert):
At least for nondecreasing I the "natural" (read: expected by naive user
like me) behaviour would be
{{{
<operator>.reduceat (a, I) ==
array ([<operator>.reduce (a [i:j]) for i,j in zip (I, r_[I [1:], len
(a)])])
}}}
Cf. also ticket #236.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/237>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list