diff options
author | warren <warren.weckesser@gmail.com> | 2021-10-28 00:39:20 -0400 |
---|---|---|
committer | warren <warren.weckesser@gmail.com> | 2021-10-28 11:51:18 -0400 |
commit | 7450ea37a96273cfb1641991f7b6fb0fa3ba9590 (patch) | |
tree | dd9a0c34be4f4d66fd9c15f80b1abe983ef7b21a /numpy/array_api/_creation_functions.py | |
parent | 5914281547fc0fbd685e18e7147d5a33f604abe7 (diff) | |
download | numpy-7450ea37a96273cfb1641991f7b6fb0fa3ba9590.tar.gz |
DOC: Mention `nan` results in `power` and `float_power`.
By design, `power` and `float_power` return `nan` when a
negative value is raised to a non-integral value. There have
been several issues raised about this over the last few years,
so let's explicitly mention this in the docstrings, and give an
example of explicitly specifying `dtype=complex` to get complex
results intead of `nan`.
Closes gh-20186.
Closes gh-12182.
Closes gh-12118.
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions