summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
diff options
context:
space:
mode:
authoryuki <drsuaimqjgar@gmail.com>2023-03-28 09:25:51 +0000
committeryuki <drsuaimqjgar@gmail.com>2023-04-08 00:15:41 +0000
commit25a73ef77c8e300ca577f0087757bdc65cb5c428 (patch)
treea09b729960d7a8a954dd80e7743deb25aef19a0f /doc/source/reference/c-api
parent954aa5856c9812b71162415b6573b397368a1da7 (diff)
downloadnumpy-25a73ef77c8e300ca577f0087757bdc65cb5c428.tar.gz
DOC: Fix document structure of `PyUfuncObject`
Moved (incorrectly indented) directives of the two flags back in order to fix a reference to `identity_value`.
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r--doc/source/reference/c-api/types-and-structures.rst15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/source/reference/c-api/types-and-structures.rst b/doc/source/reference/c-api/types-and-structures.rst
index 2bcc61108..5f76fe0a6 100644
--- a/doc/source/reference/c-api/types-and-structures.rst
+++ b/doc/source/reference/c-api/types-and-structures.rst
@@ -997,10 +997,14 @@ PyUFunc_Type and PyUFuncObject
.. c:member:: npy_uint32 *core_dim_flags
- For each distinct core dimension, a set of ``UFUNC_CORE_DIM*`` flags
+ For each distinct core dimension, a set of flags (
+ :c:macro:`UFUNC_CORE_DIM_CAN_IGNORE` and
+ :c:macro:`UFUNC_CORE_DIM_SIZE_INFERRED`)
-..
- dedented to allow internal linking, pending a refactoring
+ .. c:member:: PyObject *identity_value
+
+ Identity for reduction, when :c:member:`PyUFuncObject.identity`
+ is equal to :c:data:`PyUFunc_IdentityValue`.
.. c:macro:: UFUNC_CORE_DIM_CAN_IGNORE
@@ -1011,11 +1015,6 @@ 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
--------------------------------------