[NumPy-Tickets] [NumPy] #2020: Reduce doesn't call inner loop for scalars.
NumPy Trac
numpy-tickets@scipy....
Sun Jan 15 14:59:35 CST 2012
#2020: Reduce doesn't call inner loop for scalars.
---------------------+------------------------------------------------------
Reporter: charris | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: devel
Keywords: |
---------------------+------------------------------------------------------
This isn't a problem for current ufuncs, but suppose there was a binary
ufunc addrounded(a, b) that added the rounded values of a and b. Then
addrounded.reduce(1.5) should be 1, but currently it will just return the
element 1.5 without calling the inner loop that would round the result. On
the other hand, it would work fine with addrounded.reduce([1.5])
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2020>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list