summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-12-26 22:21:16 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2014-02-28 11:11:24 +0100
commit7e0cd9a45dd81a84cfbcfbe957ae69c5d9ebce76 (patch)
tree3f7e42f2d2ec47829d6020ec4d8cd2bd12481591 /numpy/polynomial/polyutils.py
parentb5c62f81a2dd8af8f8d507eb990d5f4efc77ee5f (diff)
downloadnumpy-7e0cd9a45dd81a84cfbcfbe957ae69c5d9ebce76.tar.gz
BUG: Only convert 0d arrays to scalars in power
Operations such as `x**array([2])` would convert the 2 into an integer and loose the dimension information, because the array (at this time, it is deprecated), supports `__index__` even though it is not 0-d. This fixes it, by not trying the index machinery when it was an array, since it is unnecessary. Closes gh-4145
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions