summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r--doc/source/reference/c-api/ufunc.rst18
1 files changed, 11 insertions, 7 deletions
diff --git a/doc/source/reference/c-api/ufunc.rst b/doc/source/reference/c-api/ufunc.rst
index 95dc47839..2909ce9af 100644
--- a/doc/source/reference/c-api/ufunc.rst
+++ b/doc/source/reference/c-api/ufunc.rst
@@ -79,7 +79,7 @@ Types
.. c:type:: PyUFuncGenericFunction
- pointers to functions that actually implement the underlying
+ Pointers to functions that actually implement the underlying
(element-by-element) function :math:`N` times with the following
signature:
@@ -107,7 +107,10 @@ Types
Arbitrary data (extra arguments, function names, *etc.* )
that can be stored with the ufunc and will be passed in
- when it is called.
+ when it is called. May be ``NULL``.
+
+ .. versionchanged:: 1.23.0
+ Accepts ``NULL`` `data` in addition to array of ``NULL`` values.
This is an example of a func specialized for addition of doubles
returning doubles.
@@ -154,13 +157,14 @@ Functions
ufunc object is alive.
:param func:
- Must to an array of length *ntypes* containing
- :c:type:`PyUFuncGenericFunction` items.
+ Must point to an array containing *ntypes*
+ :c:type:`PyUFuncGenericFunction` elements.
:param data:
- Should be ``NULL`` or a pointer to an array of size *ntypes*
- . This array may contain arbitrary extra-data to be passed to
- the corresponding loop function in the func array.
+ Should be ``NULL`` or a pointer to an array of size *ntypes*.
+ This array may contain arbitrary extra-data to be passed to
+ the corresponding loop function in the func array, including
+ ``NULL``.
:param types:
Length ``(nin + nout) * ntypes`` array of ``char`` encoding the