[NumPy-Tickets] [NumPy] #1490: searchsorted does not work properly for non-native endianness
NumPy Trac
numpy-tickets@scipy....
Fri Jan 7 12:38:36 CST 2011
#1490: searchsorted does not work properly for non-native endianness
------------------------+---------------------------------------------------
Reporter: briangerke | Owner: somebody
Type: defect | Status: needs_review
Priority: normal | Milestone: 2.0.0
Component: Other | Version:
Keywords: |
------------------------+---------------------------------------------------
Changes (by jpeel):
* status: new => needs_review
Comment:
This turns out to be a rather easy fix. The problem was basically that
endianness wasn't being dealt with at all. Since the two arrays were
already being copied in the code before being used, I just made it so that
the new arrays have native endianness using PyArray_CheckFromAny with the
NPY_NOTSWAPPED flag. In the future, someone should probably change the
code so that copies of the arrays aren't made in certain
circumstances(native endianness, contiguous, etc.), but this will at least
fix the endianness problem.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1490#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list