diff options
author | jaimefrio <jaime.frio@gmail.com> | 2014-02-07 12:51:01 -0800 |
---|---|---|
committer | jaimefrio <jaime.frio@gmail.com> | 2014-02-07 12:52:01 -0800 |
commit | e4103716d0ae5613721de63c91980b6c15d9a9dc (patch) | |
tree | d20bda698cb2cde708dd1b27ac6e92d55c9ddaeb /numpy/polynomial/polyutils.py | |
parent | 636e70be1e215f9e64831cf0b2e7020d4c30f4c8 (diff) | |
download | numpy-e4103716d0ae5613721de63c91980b6c15d9a9dc.tar.gz |
- Refactored code, to have type specific and generic binary search functions
share signature. `get_(arg)binsearch_func` now handles finding the right
function for all cases, making it transparent to `PyArray_SearchSorted`.
- Reordered types in `(arg)binsearch_map` to be sorted by type num. Since
the function is searched using binary search, this is a requirement. Only
`npy_half` was out of place. Added comment to remind future expansions.
- Corrected reference counting for `dtype` in `PyArray_SearchSorted`.
- The requirement for a coniguous `sorter` array had been dropped, but the
stride for it was set to the element size. This created an opportunity for
a very unlikely bug, that is now corrected. Added test to verify it.
- Removed unused includes from `binsearch.c.src` and `npy_binsearch.h.src`.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions