summaryrefslogtreecommitdiff
path: root/numpy/array_api/_creation_functions.py
diff options
context:
space:
mode:
authorwarren <warren.weckesser@gmail.com>2021-10-28 00:39:20 -0400
committerwarren <warren.weckesser@gmail.com>2021-10-28 11:51:18 -0400
commit7450ea37a96273cfb1641991f7b6fb0fa3ba9590 (patch)
treedd9a0c34be4f4d66fd9c15f80b1abe983ef7b21a /numpy/array_api/_creation_functions.py
parent5914281547fc0fbd685e18e7147d5a33f604abe7 (diff)
downloadnumpy-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