diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2006-09-03 19:01:47 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2006-09-03 19:01:47 +0000 |
commit | 2d72b34fb356c1f5440218123c06efd534555303 (patch) | |
tree | fbd50e6f033f45b166c4e829036a9678146854db /numpy/add_newdocs.py | |
parent | c268f1d89bbf826e69bafabbf0029b7847ca59a4 (diff) | |
download | numpy-2d72b34fb356c1f5440218123c06efd534555303.tar.gz |
More document tweaks for searchsorted.
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 6b48acbdc..86773335b 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -877,10 +877,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('searchsorted', a[j] < key <= a[i] for all j < i, - If such an index does not exist, a.size() is used. The result is such that - if the key were to be inserted into a in the slot before the index i, then - the order of a would be preserved and i would be the smallest index with - that property. + If such an index does not exist, a.size() is used. Consequently, i is the + index of the first item in a that is >= key. If the key were to be inserted + into a in the slot before the index i, then the order of a would be + preserved and i would be the smallest index with that property. The method call @@ -891,10 +891,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('searchsorted', a[j] <= key < a[i] for all j < i, - If such an index does not exist, a.size() is used. The result is such that - if the key were to be inserted into a in the slot before the index i, then - the order of a would be preserved and i would be the largest index with - that property. + If such an index does not exist, a.size() is used. Consequently, i is the + index of the first item in a that is > key. If the key were to be inserted + into a in the slot before the index i, then the order of a would be + preserved and i would be the largest index with that property. """)) |