@@ -1802,14 +1802,14 @@ the functions that must be implemented for each slot.
1802
1802
"default" value that may differ from the "identity" value normally used.
1803
1803
For example:
1804
1804
1805
- - ``0.0 `` is the default for ``sum([]) ``. But ``-0.0 `` is the correct
1806
- identity otherwise as it preserves the sign for ``sum([-0.0]) ``.
1807
- - We use no identity for object, but return the default of ``0 `` and
1808
- ``1 `` for the empty ``sum([], dtype=object) `` and
1809
- ``prod([], dtype=object) ``.
1810
- This allows ``np.sum(np.array(["a", "b"], dtype=object)) `` to work.
1811
- - ``-inf `` or ``INT_MIN `` for ``max `` is an identity, but at least
1812
- ``INT_MIN `` not a good *default * when there are no items.
1805
+ - ``0.0 `` is the default for ``sum([]) ``. But ``-0.0 `` is the correct
1806
+ identity otherwise as it preserves the sign for ``sum([-0.0]) ``.
1807
+ - We use no identity for object, but return the default of ``0 `` and
1808
+ ``1 `` for the empty ``sum([], dtype=object) `` and
1809
+ ``prod([], dtype=object) ``.
1810
+ This allows ``np.sum(np.array(["a", "b"], dtype=object)) `` to work.
1811
+ - ``-inf `` or ``INT_MIN `` for ``max `` is an identity, but at least
1812
+ ``INT_MIN `` not a good *default * when there are no items.
1813
1813
1814
1814
*initial * is a pointer to the data for the initial value, which should be
1815
1815
filled in. Returns -1, 0, or 1 indicating error, no initial value, and the
@@ -3912,7 +3912,7 @@ are defined:
3912
3912
3913
3913
* If neither is defined, the C-API is declared to
3914
3914
``static void **PyArray_API ``, so it is only visible within the
3915
- compilation unit/file using ``#includes numpy/arrayobject.h ``.
3915
+ compilation unit/file using ``#include < numpy/arrayobject.h> ``.
3916
3916
* If only ``PY_ARRAY_UNIQUE_SYMBOL `` is defined (it could be empty) then
3917
3917
the it is declared to a non-static ``void ** `` allowing it to be used
3918
3918
by other files which are linked.
0 commit comments