diff options
author | Jonathan Tammo Siebert <siebertjonathan@aim.com> | 2017-01-04 22:31:53 +0100 |
---|---|---|
committer | Jonathan Siebert <siebertjonathan@aim.com> | 2017-01-04 22:37:48 +0100 |
commit | 6312db5be6bc3bb35c999f10cb7db1cacacb4cbf (patch) | |
tree | df2568e4f704000b3cc5d27d6551c3dae441223e /doc | |
parent | 777e8c6f2d37e51b375e9be012055356061828d5 (diff) | |
download | numpy-6312db5be6bc3bb35c999f10cb7db1cacacb4cbf.tar.gz |
DOC: Added changed behavior of assert_array_less
The bug that +/- inf where not treated correctly in
np.testing.assert_array_less changed the behavior and is thus mentioned
in the release notes.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.13.0-notes.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/release/1.13.0-notes.rst b/doc/release/1.13.0-notes.rst index ddeeae40f..70b4fcbc6 100644 --- a/doc/release/1.13.0-notes.rst +++ b/doc/release/1.13.0-notes.rst @@ -137,3 +137,10 @@ with the covariance matrix by using two new keyword arguments: presence of a matrix that is not positive semidefinite. Valid options are ``ignore``, ``warn`` and ``raise``. The default value, ``warn`` keeps the the behavior used on previous releases. + +``assert_array_less`` compares ``np.inf`` and ``-np.inf`` now +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Previously, ``np.testing.assert_array_less`` ignored all infinite values. This +is not the expected behavior both according to documentation and intuitively. +Now, -inf < x < inf is considered ``True`` for any real number x and all +other cases fail. |