diff options
author | Chiara Marmo <cmarmo@users.noreply.github.com> | 2021-09-27 23:45:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 16:45:16 -0500 |
commit | bb33a1fd88f9dffe455ed428fc53172c76faa5a4 (patch) | |
tree | 599cc7fb9eda825ec1689eddf124159084022dae | |
parent | 00dce9825baa3184d26a3f5f56beed67809aef87 (diff) | |
download | numpy-bb33a1fd88f9dffe455ed428fc53172c76faa5a4.tar.gz |
DOC: Remove reference to PyArray_MultiIter_SIZE. (#19976)
Remove docs reference to non-existent C macro
-rw-r--r-- | doc/source/user/c-info.beyond-basics.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/source/user/c-info.beyond-basics.rst b/doc/source/user/c-info.beyond-basics.rst index 121384d04..7dd22afbf 100644 --- a/doc/source/user/c-info.beyond-basics.rst +++ b/doc/source/user/c-info.beyond-basics.rst @@ -174,14 +174,13 @@ incrementing is automatically performed by :c:func:`PyArray_MultiIter_NEXT` ( ``obj`` ) macro (which can handle a multiterator ``obj`` as either a :c:expr:`PyArrayMultiIterObject *` or a :c:expr:`PyObject *`). The data from input number ``i`` is available using -:c:func:`PyArray_MultiIter_DATA` ( ``obj``, ``i`` ) and the total (broadcasted) -size as :c:func:`PyArray_MultiIter_SIZE` ( ``obj``). An example of using this +:c:func:`PyArray_MultiIter_DATA` ( ``obj``, ``i`` ). An example of using this feature follows. .. code-block:: c mobj = PyArray_MultiIterNew(2, obj1, obj2); - size = PyArray_MultiIter_SIZE(obj); + size = mobj->size; while(size--) { ptr1 = PyArray_MultiIter_DATA(mobj, 0); ptr2 = PyArray_MultiIter_DATA(mobj, 1); |