8000 DOC: Mention the fpower function in the 1.12.0 release notes. · numpy/numpy@af32cce · GitHub
[go: up one dir, main page]

Skip to content

Commit af32cce

Browse files
committed
DOC: Mention the fpower function in the 1.12.0 release notes.
[ci skip]
1 parent 9451faa commit af32cce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/release/1.12.0-notes.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,15 @@ values. There are two different propagation modes. The default causes masked
261261
values to contaminate the result with masks, but the other mode only outputs
262262
masks if there is no alternative.
263263

264+
New ``float_power`` ufunc
265+
~~~~~~~~~~~~~~~~~~~~~~~~~
266+
The new ``float_power`` ufunc is like the ``power`` function except all
267+
computation is done in a minimum precision of float64. There was a long
268+
discussion on the numpy mailing list of how to treat integers to negative
269+
integer powers and a popular proposal was that the ``__pow__`` operator should
270+
always return results of at least float64 precision. The ``float_power``
271+
function implements that option. Note that it does not support object arrays.
272+
264273

265274
Improvements
266275
============

0 commit comments

Comments
 (0)
0