diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2009-03-05 17:30:02 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2009-03-05 17:30:02 +0000 |
commit | 442d00d1fcf19915b49c47a6917e707381e1ae5b (patch) | |
tree | 526f56153474fe174b5580bb08ed20c4b1f2ef3d | |
parent | 428c89c27bf7f57071ccd8ae150b75ddbd8a474a (diff) | |
download | numpy-442d00d1fcf19915b49c47a6917e707381e1ae5b.tar.gz |
Add description of new ufuncs.
Add some comments about nan handling in amax/amin.
-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 ~~~~~~~~~~~~~ |