diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-26 20:59:26 -0800 |
---|---|---|
committer | Mark Wiebe <mwwiebe@gmail.com> | 2011-01-26 20:59:26 -0800 |
commit | b58b3d167609a419a06d9d672f13501ce27d23fc (patch) | |
tree | ff5fa24f58ff1b519fedc23637064e455eeac33a | |
parent | 91b7763cae7c25865df636f7d44d284ed4094bc4 (diff) | |
download | numpy-b58b3d167609a419a06d9d672f13501ce27d23fc.tar.gz |
NEP: iter: Add NpyIter_GetAxisStrideArray function
-rw-r--r-- | doc/neps/new-iterator-ufunc.rst | 14 |
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``. |