[Numpy-tickets] [NumPy] #413: Reduction with noncommutative ufuncs is broken
NumPy
numpy-tickets at scipy.net
Tue Jan 9 01:08:54 CST 2007
#413: Reduction with noncommutative ufuncs is broken
------------------------+---------------------------------------------------
Reporter: rkern | Owner: oliphant
Type: defect | Status: closed
Priority: high | Milestone:
Component: numpy.core | Version: devel
Severity: critical | Resolution: fixed
Keywords: |
------------------------+---------------------------------------------------
Changes (by oliphant):
* status: assigned => closed
* resolution: => fixed
Comment:
Ah. A simple swap is all that was needed. We just needed to also swap
the striding values in loop->steps.
Specifically all references of loop->bufptr[0] and loop->bufptr[1] where
exchanged. This exchange also occurred for all references of
loop->steps[0] and loop->steps[1] in construct_reduce, PyArray_Reduce,
PyArray_Accumulate, and PyArray_ReduceAt
The change was incorporated in r3205
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/413#comment:6>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list