Skip to content

Commit 51d6900

Browse files
committed
Address some comments.
1 parent c515310 commit 51d6900

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

doc/source/reference/c-api/array.rst

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,8 +1250,8 @@ Converting data types
12501250
function returns :c:data:`NPY_FALSE`.
12511251
12521252
1253-
New data types
1254-
^^^^^^^^^^^^^^
1253+
User-defined data types
1254+
^^^^^^^^^^^^^^^^^^^^^^^
12551255
12561256
.. c:function:: void PyArray_InitArrFuncs(PyArray_ArrFuncs* f)
12571257
@@ -1278,14 +1278,6 @@ New data types
12781278
registered (checked only by the address of the pointer), then
12791279
return the previously-assigned type-number.
12801280
1281-
.. c:function:: int PyArray_TypeNumFromName( \
1282-
char const *str)
1283-
1284-
Given a string return the type-number for the data-type with that string as
1285-
the type-object name.
1286-
Returns NPY_NOTYPE without setting an error if no type can be found.
1287-
Only works for user-defined data-types.
1288-
12891281
.. c:function:: int PyArray_RegisterCastFunc( \
12901282
PyArray_Descr* descr, int totype, PyArray_VectorUnaryFunc* castfunc)
12911283
@@ -1303,6 +1295,13 @@ New data types
13031295
*descr* can be cast safely to a data-type whose type_number is
13041296
*totype*.
13051297
1298+
.. c:function:: int PyArray_TypeNumFromName( \
1299+
char const *str)
1300+
1301+
Given a string return the type-number for the data-type with that string as
1302+
the type-object name.
1303+
Returns NPY_NOTYPE without setting an error if no type can be found.
1304+
Only works for user-defined data-types.
13061305
13071306
Special functions for NPY_OBJECT
13081307
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -2565,7 +2564,7 @@ Broadcasting (multi-iterators)
25652564
25662565
.. c:function:: int PyArray_MultiIter_SIZE(PyObject* multi)
25672566
2568-
Returne the size of the multi-iterator object.
2567+
Returns the size of the multi-iterator object.
25692568
25702569
.. c:function:: int PyArray_Broadcast(PyArrayMultiIterObject* mit)
25712570

0 commit comments

Comments
 (0)