diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2012-10-11 18:07:03 +0200 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2013-04-11 18:52:03 +0200 |
commit | 908e06c3c465434023649b0ca522836580c5cfdc (patch) | |
tree | 98ff9a320863f4fd7d861c2c217ecd0c314ef37f /numpy/lib/recfunctions.py | |
parent | 79126f1c6084c56348b71e1b91fb4b6bc9de86b2 (diff) | |
download | numpy-908e06c3c465434023649b0ca522836580c5cfdc.tar.gz |
ENH: larger fixes for np.delete and np.insert functions
There were several smaller to larger problems for these two functions,
that this addresses:
* delete did not handle out of bound values graciously (ignoring negative
ones)
* both were unnecessarily slow due to use of sets
* insert did not handle unsorted indices correctly
Further changes:
* Add FutureWarning for boolean obj, so it can be handled similar to a
boolean mask with indexing.
* Add FutureWarning to remove inconsistent special cases for 0-d arrays
(neither insertion nor deletion along an axis make sense for a scalar)
* Allow insertion of an array with more then one element along axis when
obj is a sequence with a single item. (i.e. array([1])).
* Reintroduce speed optimization for scalar in insert that existed in 1.6.
Diffstat (limited to 'numpy/lib/recfunctions.py')
0 files changed, 0 insertions, 0 deletions