diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-05-17 13:02:01 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-05-17 19:03:15 -0600 |
commit | beac50cf98f450539dcdeee0273cfe5175d45d26 (patch) | |
tree | 52ebc11c1a4130592bc227eb385fb513073a7c4a /numpy/add_newdocs.py | |
parent | b9e3ac9abb6e435cdf6bbe33e0bc894d6a879a53 (diff) | |
download | numpy-beac50cf98f450539dcdeee0273cfe5175d45d26.tar.gz |
DEP: Deprecate incorrect behavior of expand_dims.
Expand_dims works as documented when the index of the inserted NewAxis
in the resulting array satisfies -a.ndim - 1 <= index <= a.ndim.
However, when index > a.ndim index is replaced by a.ndim and, when
index < -a.ndim - 1, it is replaced by index + a.ndim + 1, which may be
negative and results in incorrect placement. The latter two cases are
now deprecated.
Closes #9100.
Diffstat (limited to 'numpy/add_newdocs.py')
0 files changed, 0 insertions, 0 deletions