summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-01-26 20:59:26 -0800
committerMark Wiebe <mwwiebe@gmail.com>2011-01-26 20:59:26 -0800
commitb58b3d167609a419a06d9d672f13501ce27d23fc (patch)
treeff5fa24f58ff1b519fedc23637064e455eeac33a
parent91b7763cae7c25865df636f7d44d284ed4094bc4 (diff)
downloadnumpy-b58b3d167609a419a06d9d672f13501ce27d23fc.tar.gz
NEP: iter: Add NpyIter_GetAxisStrideArray function
-rw-r--r--doc/neps/new-iterator-ufunc.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/neps/new-iterator-ufunc.rst b/doc/neps/new-iterator-ufunc.rst
index 74bfd9741..083f9857f 100644
--- a/doc/neps/new-iterator-ufunc.rst
+++ b/doc/neps/new-iterator-ufunc.rst
@@ -1316,6 +1316,20 @@ Construction and Destruction
Returns the number of objects being iterated.
+``npy_intp *NpyIter_GetAxisStrideArray(NpyIter *iter, npy_intp axis)``
+
+ Gets the array of strides for the specified axis. Requires that
+ the iterator be tracking coordinates, and that buffering not
+ be enabled.
+
+ This may be used when you want to match up operand axes in
+ some fashion, then remove them with ``NpyIter_RemoveAxis`` to
+ handle their processing manually. By calling this function
+ before removing the axes, you can get the strides for the
+ manual processing.
+
+ Returns ``NULL`` on error.
+
``int NpyIter_GetShape(NpyIter *iter, npy_intp *outshape)``
Returns the broadcast shape of the iterator in ``outshape``.