summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-11-05 12:23:13 -0400
committerGitHub <noreply@github.com>2016-11-05 12:23:13 -0400
commit62046aa1f3b4666519cbd7d5481dae836e34bbd3 (patch)
tree0287d4705d0e61db965a2914ed566871606cc8c7 /doc
parent9589a5afadf1adb766179d6f5d2e94ec742fe696 (diff)
parentaf32cce15d670ff479c46b8580116619e29261ca (diff)
downloadnumpy-62046aa1f3b4666519cbd7d5481dae836e34bbd3.tar.gz
Merge pull request #8190 from charris/add-fpower-ufunc
ENH: Add a float_power function with at least float64 precision.
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.12.0-notes.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/release/1.12.0-notes.rst b/doc/release/1.12.0-notes.rst
index 4029abc48..473511c3d 100644
--- a/doc/release/1.12.0-notes.rst
+++ b/doc/release/1.12.0-notes.rst
@@ -261,6 +261,15 @@ values. There are two different propagation modes. The default causes masked
values to contaminate the result with masks, but the other mode only outputs
masks if there is no alternative.
+New ``float_power`` ufunc
+~~~~~~~~~~~~~~~~~~~~~~~~~
+The new ``float_power`` ufunc is like the ``power`` function except all
+computation is done in a minimum precision of float64. There was a long
+discussion on the numpy mailing list of how to treat integers to negative
+integer powers and a popular proposal was that the ``__pow__`` operator should
+always return results of at least float64 precision. The ``float_power``
+function implements that option. Note that it does not support object arrays.
+
Improvements
============