diff options
author | jaimefrio <jaime.frio@gmail.com> | 2014-09-24 23:52:07 -0700 |
---|---|---|
committer | jaimefrio <jaime.frio@gmail.com> | 2014-09-25 18:27:15 -0700 |
commit | ed9345fc89a9375c98f00f1be64c5bab1fa7475d (patch) | |
tree | a5655754d98f887421cf65d83dec31b4757f5a2b /doc | |
parent | e3e82e50b6340f8784baf28090a81878979e489a (diff) | |
download | numpy-ed9345fc89a9375c98f00f1be64c5bab1fa7475d.tar.gz |
DOC: document improvements to `np.digitize`
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.10.0-notes.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/release/1.10.0-notes.rst b/doc/release/1.10.0-notes.rst index 333ce2c77..35eeab1cb 100644 --- a/doc/release/1.10.0-notes.rst +++ b/doc/release/1.10.0-notes.rst @@ -37,6 +37,13 @@ and a bit faster. Improvements ============ +`np.digitize` using binary search +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +`np.digitize` is now implemented in terms of `np.searchsorted`. This means +that a binary search is used to bin the values, which scales much better +for larger number of bins than the previous linear search. It also removes +the requirement for the input array to be 1-dimensional. + `np.poly` now casts integer inputs to float ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `np.poly` will now cast 1-dimensional input arrays of integer type to double |