@@ -149,7 +149,7 @@ Note the following specific rules and observations:
149
149
150
150
1. When a Python ``float `` or ``complex `` interacts with a NumPy integer
151
151
the result will be ``float64 `` or ``complex128 `` (yellow border).
152
- NumPy booleans will also be cast to the default integer. [#default-int]
152
+ NumPy booleans will also be cast to the default integer [#default-int ]_.
153
153
This is not relevant when additionally NumPy floating point values are
154
154
involved.
155
155
2. The precision is drawn such that ``float16 < int16 < uint16 `` because
@@ -172,7 +172,7 @@ would give.
172
172
173
173
Behavior of ``sum `` and ``prod ``
174
174
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
175
- ** ``np.sum`` and ``np.prod``: ** Will always return the default integer type
175
+ ``np.sum `` and ``np.prod `` will always return the default integer type
176
176
when summing over integer values (or booleans). This is usually an ``int64 ``.
177
177
The reason for this is that integer summations are otherwise very likely
178
178
to overflow and give confusing results.
@@ -247,7 +247,7 @@ could drastically slow down evaluation.
247
247
248
248
249
249
.. [#hist-reasons ] To a large degree, this may just be for choices made early
250
- on in NumPy's predecessors. For more details, see `NEP 50 <NEP50> `.
250
+ on in NumPy's predecessors. For more details, see :ref: `NEP 50 <NEP50 >`.
251
251
252
252
.. [#NEP50 ] See also :ref: `NEP 50 <NEP50 >` which changed the rules for
253
253
NumPy 2.0. Previous versions of NumPy would sometimes return higher
0 commit comments