diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-10-20 20:44:20 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-11-02 18:02:02 -0600 |
commit | 9451faa445571cf1839e415bb419afa18c0e7ed9 (patch) | |
tree | 29de8940691f6e1ecaeb2a7efdf38862e727ef35 /numpy/core/setup_common.py | |
parent | 6790bf80c4833cada74a41a85cff339118ef48ca (diff) | |
download | numpy-9451faa445571cf1839e415bb419afa18c0e7ed9.tar.gz |
ENH: Add a float_power function with at least float64 precision.
The new float_power function converts integers and inexact type to
inexact types of minimum precision float64 before computing the power.
The intent is one should not need to worry about overflow or negative
powers when computing a power when type preservation is not a factor. It
also implements the popular proposal on the numpy mailing list that the
`**` operator should always return at least double precision.
Diffstat (limited to 'numpy/core/setup_common.py')
0 files changed, 0 insertions, 0 deletions