summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBryan Van de Ven <bryan@laptop.local>2012-03-22 10:24:52 -0500
committerCharles Harris <charlesr.harris@gmail.com>2012-04-04 10:15:45 -0600
commit313fe46046a7192cbdba2e679a104777301bc7cf (patch)
treeacdfcd44ceeaed40da585c373f2bfca94bf30a2e /doc
parent0d1b60136862dd831ca586516d47561181e321ec (diff)
downloadnumpy-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.rst6
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
=======