summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMircea Akos Bruma <bruma.mircea.a@gmail.com>2019-03-21 16:12:25 +0100
committerMircea Akos Bruma <bruma.mircea.a@gmail.com>2019-03-21 16:12:25 +0100
commit601421b339b011b23748da62a3cad0d598f84936 (patch)
tree117f40c01d36a69e1b9758312e8a0ca66a601531 /doc
parent251c526672f897543176b966229ecde96bb89a9d (diff)
downloadnumpy-601421b339b011b23748da62a3cad0d598f84936.tar.gz
DOC: Attempting to remove duplicate documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/reference/c-api.array.rst7
-rw-r--r--doc/source/user/c-info.how-to-extend.rst20
2 files changed, 12 insertions, 15 deletions
diff --git a/doc/source/reference/c-api.array.rst b/doc/source/reference/c-api.array.rst
index ee2be9e07..7d6942f75 100644
--- a/doc/source/reference/c-api.array.rst
+++ b/doc/source/reference/c-api.array.rst
@@ -510,6 +510,11 @@ From other objects
:c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_WRITEABLE` \|
:c:data:`NPY_ARRAY_ALIGNED`
+ .. c:var:: NPY_ARRAY_OUT_ARRAY
+
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_ALIGNED` \|
+ :c:data:`NPY_ARRAY_WRITEABLE`
+
.. c:var:: NPY_ARRAY_OUT_FARRAY
:c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_WRITEABLE` \|
@@ -789,7 +794,7 @@ From other objects
PyObject* obj, int typenum, int requirements)
Combination of :c:func:`PyArray_FROM_OF` and :c:func:`PyArray_FROM_OT`
- allowing both a *typenum* and a *flags* argument to be provided..
+ allowing both a *typenum* and a *flags* argument to be provided.
.. c:function:: PyObject* PyArray_FROMANY( \
PyObject* obj, int typenum, int min, int max, int requirements)
diff --git a/doc/source/user/c-info.how-to-extend.rst b/doc/source/user/c-info.how-to-extend.rst
index 8016cfcbd..b70036c89 100644
--- a/doc/source/user/c-info.how-to-extend.rst
+++ b/doc/source/user/c-info.how-to-extend.rst
@@ -447,17 +447,13 @@ writeable). The syntax is
:c:data:`NPY_ARRAY_IN_ARRAY`
- Equivalent to :c:data:`NPY_ARRAY_C_CONTIGUOUS` \|
- :c:data:`NPY_ARRAY_ALIGNED`. This combination of flags is useful
- for arrays that must be in C-contiguous order and aligned.
- These kinds of arrays are usually input arrays for some
- algorithm.
+ This flag is useful for arrays that must be in C-contiguous
+ order and aligned. These kinds of arrays are usually input
+ arrays for some algorithm.
- .. c:var:: NPY_ARRAY_OUT_ARRAY
+ :c:data:`NPY_ARRAY_OUT_ARRAY`
- Equivalent to :c:data:`NPY_ARRAY_C_CONTIGUOUS` \|
- :c:data:`NPY_ARRAY_ALIGNED` \| :c:data:`NPY_ARRAY_WRITEABLE`. This
- combination of flags is useful to specify an array that is
+ This flag is useful to specify an array that is
in C-contiguous order, is aligned, and can be written to
as well. Such an array is usually returned as output
(although normally such output arrays are created from
@@ -465,11 +461,7 @@ writeable). The syntax is
:c:data:`NPY_ARRAY_INOUT_ARRAY`
- Equivalent to :c:data:`NPY_ARRAY_C_CONTIGUOUS` \|
- :c:data:`NPY_ARRAY_ALIGNED` \| :c:data:`NPY_ARRAY_WRITEABLE` \|
- :c:data:`NPY_ARRAY_WRITEBACKIFCOPY` \|
- :c:data:`NPY_ARRAY_UPDATEIFCOPY`. This combination of flags is
- useful to specify an array that will be used for both
+ This flag is useful to specify an array that will be used for both
input and output. :c:func:`PyArray_ResolveWritebackIfCopy`
must be called before :func:`Py_DECREF` at
the end of the interface routine to write back the temporary data