summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api
diff options
context:
space:
mode:
authorChiara Marmo <chiara.marmo@inria.fr>2021-07-27 00:29:58 +0200
committerChiara Marmo <chiara.marmo@inria.fr>2021-07-27 00:29:58 +0200
commitc515310bf531bb8d6e70c091081bffc7f054bf9b (patch)
tree8b4d9bd1d8a0a3fa31c6a2caaae3e0f6c7a80a1f /doc/source/reference/c-api
parent978bbe7fdb519edf1f28df4982ce13523ef59a4d (diff)
downloadnumpy-c515310bf531bb8d6e70c091081bffc7f054bf9b.tar.gz
Fix sphinx warnings in c-info.beyond-basics.
Diffstat (limited to 'doc/source/reference/c-api')
-rw-r--r--doc/source/reference/c-api/array.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst
index cb2f4b645..44179d778 100644
--- a/doc/source/reference/c-api/array.rst
+++ b/doc/source/reference/c-api/array.rst
@@ -1278,6 +1278,14 @@ New data types
registered (checked only by the address of the pointer), then
return the previously-assigned type-number.
+.. c:function:: int PyArray_TypeNumFromName( \
+ char const *str)
+
+ Given a string return the type-number for the data-type with that string as
+ the type-object name.
+ Returns NPY_NOTYPE without setting an error if no type can be found.
+ Only works for user-defined data-types.
+
.. c:function:: int PyArray_RegisterCastFunc( \
PyArray_Descr* descr, int totype, PyArray_VectorUnaryFunc* castfunc)
@@ -2555,6 +2563,10 @@ Broadcasting (multi-iterators)
through all of the elements (of the broadcasted result), otherwise
it evaluates FALSE.
+.. c:function:: int PyArray_MultiIter_SIZE(PyObject* multi)
+
+ Returne the size of the multi-iterator object.
+
.. c:function:: int PyArray_Broadcast(PyArrayMultiIterObject* mit)
This function encapsulates the broadcasting rules. The *mit*