diff options
author | Bryan Van de Ven <bryan@laptop.local> | 2012-03-22 10:24:52 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-04-04 10:15:45 -0600 |
commit | 313fe46046a7192cbdba2e679a104777301bc7cf (patch) | |
tree | acdfcd44ceeaed40da585c373f2bfca94bf30a2e /doc | |
parent | 0d1b60136862dd831ca586516d47561181e321ec (diff) | |
download | numpy-313fe46046a7192cbdba2e679a104777301bc7cf.tar.gz |
ENH: Add 'sorter' argument to searchsorted.
The new argument allows one to search an argsorted array by passing
in the result of argsorting the array as the 'sorter' argument. For
example
searchsorted(a, sorter=a.argsort)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/2.0.0-notes.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/release/2.0.0-notes.rst b/doc/release/2.0.0-notes.rst index 2c80c84a6..e9fd7f90a 100644 --- a/doc/release/2.0.0-notes.rst +++ b/doc/release/2.0.0-notes.rst @@ -130,6 +130,12 @@ Support for mask-based NA values in the polynomial package fits The fitting functions recognize and remove masked data from the fit. +New argument to searchsorted +---------------------------- + +The function searchsorted now accepts a 'sorter' argument that is a +permuation array that sorts the array to search. + Changes ======= |