summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-10-25 07:49:59 +0200
committerGitHub <noreply@github.com>2020-10-25 07:49:59 +0200
commit043a0421504396fa7ab0f27d66f8bb5ea539606a (patch)
tree60014f95e2504abbca9056fd6cec04026cda2261 /doc/source/reference/c-api
parent1793ce1476fdc21a4f11e63ca593ac80854a0087 (diff)
parent70c3565244ada9edaae1c1f86e48fb42cfde04d3 (diff)
downloadnumpy-043a0421504396fa7ab0f27d66f8bb5ea539606a.tar.gz
Merge pull request #17629 from takanori-pskq/i13114-pyufunc-identity
DOC: Add ``identity_value`` to ``PyUFuncObject``
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r--doc/source/reference/c-api/types-and-structures.rst12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/source/reference/c-api/types-and-structures.rst b/doc/source/reference/c-api/types-and-structures.rst
index 8c1a679dc..d9c48c039 100644
--- a/doc/source/reference/c-api/types-and-structures.rst
+++ b/doc/source/reference/c-api/types-and-structures.rst
@@ -790,8 +790,8 @@ PyUFunc_Type and PyUFuncObject
npy_uint32 *iter_flags;
/* new in API version 0x0000000D */
npy_intp *core_dim_sizes;
- npy_intp *core_dim_flags;
-
+ npy_uint32 *core_dim_flags;
+ PyObject *identity_value;
} PyUFuncObject;
.. c:macro: PyObject_HEAD
@@ -956,7 +956,8 @@ PyUFunc_Type and PyUFuncObject
.. c:member:: npy_intp *core_dim_sizes
For each distinct core dimension, the possible
- :ref:`frozen <frozen>` size if :c:data:`UFUNC_CORE_DIM_SIZE_INFERRED` is 0
+ :ref:`frozen <frozen>` size if
+ :c:data:`UFUNC_CORE_DIM_SIZE_INFERRED` is ``0``
.. c:member:: npy_uint32 *core_dim_flags
@@ -971,6 +972,11 @@ PyUFunc_Type and PyUFuncObject
if the dim size will be determined from the operands
and not from a :ref:`frozen <frozen>` signature
+ .. c:member:: PyObject *identity_value
+
+ Identity for reduction, when :c:member:`PyUFuncObject.identity`
+ is equal to :c:data:`PyUFunc_IdentityValue`.
+
PyArrayIter_Type and PyArrayIterObject
--------------------------------------