summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api.iterator.rst
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-08-24 16:24:52 -0700
committerCharles Harris <charlesr.harris@gmail.com>2011-08-27 07:27:01 -0600
commit770c94ef5ab2478bc9f5451f931613d7424459e1 (patch)
tree7a885fd8ac4dc5853c815628c2e6089afd6c94ff /doc/source/reference/c-api.iterator.rst
parent847404a650757ba8ab6dae3af937890230b00f84 (diff)
downloadnumpy-770c94ef5ab2478bc9f5451f931613d7424459e1.tar.gz
DOC: missingdata: Add example of a C-API function supporting NA masks
Diffstat (limited to 'doc/source/reference/c-api.iterator.rst')
-rw-r--r--doc/source/reference/c-api.iterator.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/source/reference/c-api.iterator.rst b/doc/source/reference/c-api.iterator.rst
index 4132ccf2b..0915f765e 100644
--- a/doc/source/reference/c-api.iterator.rst
+++ b/doc/source/reference/c-api.iterator.rst
@@ -551,9 +551,10 @@ Construction and Destruction
.. cvar:: NPY_ITER_ALLOCATE
This is for output arrays, and requires that the flag
- :cdata:`NPY_ITER_WRITEONLY` be set. If ``op[i]`` is NULL,
- creates a new array with the final broadcast dimensions,
- and a layout matching the iteration order of the iterator.
+ :cdata:`NPY_ITER_WRITEONLY` or :cdata:`NPY_ITER_READWRITE`
+ be set. If ``op[i]`` is NULL, creates a new array with
+ the final broadcast dimensions, and a layout matching
+ the iteration order of the iterator.
When ``op[i]`` is NULL, the requested data type
``op_dtypes[i]`` may be NULL as well, in which case it is