diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-03-03 19:33:41 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-03-03 19:36:32 -0700 |
commit | 9653c05a53327332a481cd697708ae9b6360fbf0 (patch) | |
tree | 5cb864882cb9c04e28e2ea947fe20d625e3a4adb | |
parent | 3ed543e996b23418f78fc25e77e06b1f0e29f65f (diff) | |
download | numpy-9653c05a53327332a481cd697708ae9b6360fbf0.tar.gz |
DOC: Document the changed bitwise_and identity.
The identity has changed from 1 to -1.
-rw-r--r-- | doc/release/1.12.0-notes.rst | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/doc/release/1.12.0-notes.rst b/doc/release/1.12.0-notes.rst index ba9d3dd5f..62c056c55 100644 --- a/doc/release/1.12.0-notes.rst +++ b/doc/release/1.12.0-notes.rst @@ -76,10 +76,10 @@ The following functions are changed: ``sum``, ``product``, ``nansum``, ``nanprod``, ``nanmean``, ``nanmedian``, ``nanvar``, ``nanstd`` - -DeprecationWarning to error -~~~~~~~~~~~~~~~~~~~~~~~~~~~ - +``bitwise_and`` identity changed +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The previous identity was 1, it is now -1. See entry in `Improvements`_ for +more explanation. FutureWarning to changed behavior ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -111,7 +111,7 @@ Improvements ============ *np.loadtxt* now supports a single integer as ``usecol`` argument -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Instead of using ``usecol=(n,)`` to read the nth column of a file it is now allowed to use ``usecol=n``. Also the error message is more user friendly when a non-integer is passed as a column index. @@ -120,6 +120,14 @@ Additional estimators for ``histogram`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Added 'doane' and 'sqrt' estimators to ``histogram`` via the ``bins`` argument. +``bitwise_and`` identity changed +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The previous identity was 1 with the result that all bits except the LSB were +masked out when the reduce method was used. The new identity is -1, which +should work properly on twos complement machines as all bits will be set to +one. + + Changes ======= |