diff options
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/1.3.0-notes.rst | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/doc/release/1.3.0-notes.rst b/doc/release/1.3.0-notes.rst index ed893ef97..d4a908a2e 100644 --- a/doc/release/1.3.0-notes.rst +++ b/doc/release/1.3.0-notes.rst @@ -38,10 +38,31 @@ Formatting issues TODO -Nan handling in max/min/sort -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -TODO +Nan handling in max/min +~~~~~~~~~~~~~~~~~~~~~~~ + +The maximum/minimum ufuncs now reliably propagate nans. If one of the +arguments is a nan, then nan is retured. This affects np.min/np.max, amin/amax +and the array methods max/min. New ufuncs fmax and fmin have been added to deal +with non-propagating nans. + +New ufuncs +~~~~~~~~~~ + +#. fmax - same as maximum for integer types and non-nan floats. Returns the + non-nan argument if one argument is nan and returns nan if both arguments + are nan. +#. fmin - same as minimum for integer types and non-nan floats. Returns the + non-nan argument if one argument is nan and returns nan if both arguments + are nan. +#. deg2rad - converts degrees to radians, same as the radians ufunc. +#. rad2deg - converts radians to degrees, same as the degrees ufunc. +#. log2 - base 2 logarithm. +#. exp2 - base 2 exponential. +#. logaddexp - add numbers stored as logarithms and return the logarithm + of the result. +#. logaddexp2 - add numbers stored as base 2 logarithms and return the base 2 + logarithm of the result result. Masked arrays ~~~~~~~~~~~~~ |