diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-02-16 15:41:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 15:41:27 -0700 |
commit | d55f40b1e48d5a5fbed80e00a140c9db6e19732f (patch) | |
tree | 733aa0ac1abdcc1aadf6452be5729b7b83095a09 /numpy/add_newdocs.py | |
parent | ba1ddc421eac7b5c3accb99a4c633490a1814838 (diff) | |
parent | 8e8ce442e8449916a93951093cdce16cec006bcc (diff) | |
download | numpy-d55f40b1e48d5a5fbed80e00a140c9db6e19732f.tar.gz |
Merge pull request #8043 from pv/ufunc-copy-overlap
ENH: umath: ensure ufuncs are well-defined with memory overlapping inputs
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 41c560074..09f4e40c4 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -169,6 +169,10 @@ add_newdoc('numpy.core', 'nditer', with one per iteration dimension, to be tracked. * "common_dtype" causes all the operands to be converted to a common data type, with copying or buffering as necessary. + * "copy_if_overlap" causes the iterator to determine if read + operands have overlap with write operands, and make temporary + copies as necessary to avoid overlap. False positives (needless + copying) are possible in some cases. * "delay_bufalloc" delays allocation of the buffers until a reset() call is made. Allows "allocate" operands to be initialized before their values are copied into the buffers. @@ -208,6 +212,9 @@ add_newdoc('numpy.core', 'nditer', copies those elements indicated by this mask. * 'writemasked' indicates that only elements where the chosen 'arraymask' operand is True will be written to. + * "overlap_assume_elementwise" can be used to mark operands that are + accessed only in the iterator order, to allow less conservative + copying when "copy_if_overlap" is present. op_dtypes : dtype or tuple of dtype(s), optional The required data type(s) of the operands. If copying or buffering is enabled, the data will be converted to/from their original types. |