@@ -23,7 +23,7 @@ guide can be automatically adapted in downstream code with a dedicated
23
23
`Ruff <https://docs.astral.sh/ruff/ >`__ rule, namely rule
24
24
`NPY201 <https://docs.astral.sh/ruff/rules/numpy2-deprecation/ >`__.
25
25
26
- You should install ``ruff>=0.2.0 `` and add the ``NPY201 `` rule to your
26
+ You should install ``ruff>=0.4.8 `` and add the ``NPY201 `` rule to your
27
27
``pyproject.toml ``::
28
28
29
29
[tool.ruff.lint]
@@ -149,8 +149,8 @@ Please do not hesitate to open a NumPy issue, if you require assistance or
149
149
the provided functions are not sufficient.
150
150
151
151
**Custom User DTypes: **
152
- Existing user dtypes must now use `` PyArray_DescrProto `` to define their
153
- dtype and slightly modify the code. See note in `PyArray_RegisterDataType `.
152
+ Existing user dtypes must now use :c:type: ` PyArray_DescrProto ` to define
153
+ their dtype and slightly modify the code. See note in :c:func: `PyArray_RegisterDataType `.
154
154
155
155
Functionality moved to headers requiring ``import_array() ``
156
156
-----------------------------------------------------------
@@ -202,13 +202,13 @@ native C99 types. While the memory layout of those types remains identical
202
202
to the types used in NumPy 1.x, the API is slightly different, since direct
203
203
field access (like ``c.real `` or ``c.imag ``) is no longer possible.
204
204
205
- It is recommended to use the functions `npy_creal ` and `npy_cimag ` (and the
206
- corresponding float and long double variants) to retrieve
205
+ It is recommended to use the functions `` npy_creal `` and `` npy_cimag ``
206
+ (and the corresponding float and long double variants) to retrieve
207
207
the real or imaginary part of a complex number, as these will work with both
208
- NumPy 1.x and with NumPy 2.x. New functions `npy_csetreal ` and ` npy_csetimag `,
209
- along with compatibility macros `NPY_CSETREAL ` and ` NPY_CSETIMAG ` ( and the
210
- corresponding float and long double variants), have been
211
- added for setting the real or imaginary part.
208
+ NumPy 1.x and with NumPy 2.x. New functions `` npy_csetreal `` and
209
+ `` npy_csetimag ``, along with compatibility macros `` NPY_CSETREAL `` and
210
+ `` NPY_CSETIMAG `` (and the corresponding float and long double variants),
211
+ have been added for setting the real or imaginary part.
212
212
213
<
6E98
td data-grid-cell-id="diff-a0a6c96d06c18d0d7b39d5c94173a386fbe4eb06eef5b386cf6c688dd7fe32f6-213-213-1" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative diff-line-number-neutral left-side">213
The underlying type remains a struct under C++ (all of the above still remains
214
214
valid).
@@ -382,7 +382,6 @@ expired member migration guideline
382
382
newbyteorder Use ``arr.view(arr.dtype.newbyteorder(order)) `` instead.
383
383
ptp Use ``np.ptp(arr, ...) `` instead.
384
384
setitem Use ``arr[index] = value `` instead.
385
- ... ...
386
385
====================== ========================================================
387
386
388
387
0 commit comments