From d8bbc37d5fdf06cc3e42d51a8df2f2c7dc0286ce Mon Sep 17 00:00:00 2001 From: Liang Yan Date: Thu, 6 Jul 2023 15:45:19 +0800 Subject: [PATCH] DOC: Fix warning for PyArray_MapIterNew. --- doc/source/reference/c-api/array.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst index c1d83ee0ef31..6da7715c210e 100644 --- a/doc/source/reference/c-api/array.rst +++ b/doc/source/reference/c-api/array.rst @@ -2696,6 +2696,15 @@ Array mapping is the machinery behind advanced indexing. Use advanced indexing to iterate an array. +.. c:function:: PyObject* PyArray_MapIterNew(npy_index_info *indices, \ + int index_num, int index_type, int ndim, int fancy_ndim, \ + PyArrayObject *arr, PyArrayObject *subspace, \ + npy_uint32 subspace_iter_flags, npy_uint32 subspace_flags, \ + npy_uint32 extra_op_flags, PyArrayObject *extra_op, \ + PyArray_Descr *extra_op_dtype) + + Create new mapiter. + .. c:function:: void PyArray_MapIterSwapAxes(PyArrayMapIterObject *mit, \ PyArrayObject **ret, int getmap)