diff options
author | Eric Moore <ewm@redtetrahedron.org> | 2016-03-22 08:53:43 -0400 |
---|---|---|
committer | Eric Moore <ewm@redtetrahedron.org> | 2016-03-22 08:53:43 -0400 |
commit | 58ff38a547e59e2e8f8278d445f66c1091f1299a (patch) | |
tree | 8ecfedf8d1b2b7660ae460eb94306e27669d64f0 /numpy/core/fromnumeric.py | |
parent | 5c24db244ec8a8d7e4ca2f823b0ba71b7d4dff3d (diff) | |
download | numpy-58ff38a547e59e2e8f8278d445f66c1091f1299a.tar.gz |
BUG: scalar integer negative powers gave wrong results.
np.int8(4)**np.int8(-4) gave inf. Since we result a float or
double for these cases, just call those power routines. This
prevents integer overflow from resulting in a divide by zero and
the old nonsense result.
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions