diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2012-11-14 12:08:17 -0600 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2013-08-16 16:39:30 -0500 |
commit | 04c341da469150701fe7def6c98955485425b388 (patch) | |
tree | 38be46c85268d04866b70140f0ba619766366222 /doc | |
parent | 6bf50f16dc6e21f94606dbe4073b0aa34d2d14fa (diff) | |
download | numpy-04c341da469150701fe7def6c98955485425b388.tar.gz |
Update documentation for 'at' method
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.8.0-notes.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/release/1.8.0-notes.rst b/doc/release/1.8.0-notes.rst index 1cc8c0c08..c8d3b264b 100644 --- a/doc/release/1.8.0-notes.rst +++ b/doc/release/1.8.0-notes.rst @@ -185,6 +185,16 @@ New nan aware statistical functions are added. In these functions the results are what would be obtained if nan values were ommited from all computations. +In place fancy indexing for ufuncs +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The function ``at`` has been added to ufunc objects to allow in place +ufuncs using fancy indexing with no buffering. For example, the following +will increment the first and second items in the array, and will increment +the third item twice: +numpy.add.at(array, [0, 1, 2, 2], 1) + +This is similar to doing array[[0, 1, 2, 2]] += 1 + C-API ~~~~~ |