summaryrefslogtreecommitdiff
path: root/doc/source/user
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-12-07 10:49:59 -0700
committerGitHub <noreply@github.com>2017-12-07 10:49:59 -0700
commit3a76ffc270277af9d72be2b620efc62d2bc64345 (patch)
tree64393bd63bd6aef4a8093ffbf0ba88b35779dd35 /doc/source/user
parent1649929d28915da19c02fc14cf8408eb35833eaf (diff)
downloadnumpy-3a76ffc270277af9d72be2b620efc62d2bc64345.tar.gz
DOC: Update macro names.
[ci skip]
Diffstat (limited to 'doc/source/user')
-rw-r--r--doc/source/user/c-info.how-to-extend.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/user/c-info.how-to-extend.rst b/doc/source/user/c-info.how-to-extend.rst
index 1eeb46e4f..22c3b6e90 100644
--- a/doc/source/user/c-info.how-to-extend.rst
+++ b/doc/source/user/c-info.how-to-extend.rst
@@ -619,14 +619,14 @@ for NumPy v1.14 and above
if (!PyArg_ParseTuple(args, "OOO!", &arg1, &arg2,
&PyArray_Type, &out)) return NULL;
- arr1 = PyArray_FROM_OTF(arg1, NPY_DOUBLE, NPY_IN_ARRAY);
+ arr1 = PyArray_FROM_OTF(arg1, NPY_DOUBLE, NPY_ARRAY_IN_ARRAY);
if (arr1 == NULL) return NULL;
- arr2 = PyArray_FROM_OTF(arg2, NPY_DOUBLE, NPY_IN_ARRAY);
+ arr2 = PyArray_FROM_OTF(arg2, NPY_DOUBLE, NPY_ARRAY_IN_ARRAY);
if (arr2 == NULL) goto fail;
#if NPY_API_VERSION >= 0x0000000c
- oarr = PyArray_FROM_OTF(out, NPY_DOUBLE, NPY_INOUT_ARRAY2);
+ oarr = PyArray_FROM_OTF(out, NPY_DOUBLE, NPY_ARRAY_INOUT_ARRAY2);
#else
- oarr = PyArray_FROM_OTF(out, NPY_DOUBLE, NPY_INOUT_ARRAY);
+ oarr = PyArray_FROM_OTF(out, NPY_DOUBLE, NPY_ARRAY_INOUT_ARRAY);
#endif
if (oarr == NULL) goto fail;