@@ -440,6 +440,16 @@ reconstructed by using ``np.solve(a, b[..., None])[..., 0]``.
440
440
441
441
(`gh-25914 <https://github.com/numpy/numpy/pull/25914 >`__)
442
442
443
+ Modified representation for ``Polynomial ``
444
+ ------------------------------------------
445
+ The representation method for `~numpy.polynomial.polynomial.Polynomial ` was
446
+ updated to include the domain in the representation. The plain text and latex
447
+ representations are now consistent. For example the output of
448
+ ``str(np.polynomial.Polynomial([1, 1], domain=[.1, .2])) `` used to be ``1.0 +
449
+ 1.0 x ``, but now is ``1.0 + 1.0 (-3.0000000000000004 + 20.0 x) ``.
450
+
451
+ (`gh-21760 <https://github.com/numpy/numpy/pull/21760 >`__)
452
+
443
453
444
454
C API changes
445
455
=============
@@ -467,7 +477,7 @@ C API changes
467
477
468
478
(`gh-25789 <https://github.com/numpy/numpy/pull/25789 >`__)
469
479
470
- * NumPy now defines :c:function : `PyArray_Pack ` to set an individual memory
480
+ * NumPy now defines :c:func : `PyArray_Pack ` to set an individual memory
471
481
address. Unlike ``PyArray_SETITEM `` this function is equivalent to setting
472
482
an individual array item and does not require a NumPy array input.
473
483
@@ -603,7 +613,7 @@ for simpler backporting.
603
613
604
614
Structured dtype information access through functions
605
615
-----------------------------------------------------
606
- The dtype structures fields `c_metadata``, ``names ``,
616
+ The dtype structures fields `` c_metadata ``, ``names ``,
607
617
``fields ``, and ``subarray `` must now be accessed through new
608
618
functions following the same names, such as ``PyDataType_NAMES ``.
609
619
Direct access of the fields is not valid as they do not exist for
@@ -616,8 +626,8 @@ The ``metadata`` field is kept, but the macro version should also be preferred.
616
626
Descriptor ``elsize `` and ``alignment `` access
617
627
----------------------------------------------
618
628
Unless compiling only with NumPy 2 support, the ``elsize `` and ``aligment ``
619
- fields must now be accessed via `PyDataType_ELSIZE `,
620
- `PyDataType_SET_ELSIZE `, and `PyDataType_ALIGNMENT `.
629
+ fields must now be accessed via `` PyDataType_ELSIZE ` `,
630
+ `` PyDataType_SET_ELSIZE `` , and `` PyDataType_ALIGNMENT ` `.
621
631
In cases where the descriptor is attached to an array, we advise
622
632
using ``PyArray_ITEMSIZE `` as it exists on all NumPy versions.
623
633
Please see :ref: `migration_c_descr ` for more information.
@@ -1347,7 +1357,7 @@ However, it means that:
1347
1357
``numpy.fft.helper `` made private
1348
1358
---------------------------------
1349
1359
1350
- ``numpy.fft.helper `` was renamed to `numpy.fft._helper ` to indicate
1360
+ ``numpy.fft.helper `` was renamed to `` numpy.fft._helper ` ` to indicate
1351
1361
that it is a private submodule. All public functions exported by it
1352
1362
should be accessed from `numpy.fft `.
1353
1363
@@ -1356,7 +1366,7 @@ should be accessed from `numpy.fft`.
1356
1366
``numpy.linalg.linalg `` made private
1357
1367
------------------------------------
1358
1368
1359
- ``numpy.linalg.linalg `` was renamed to `numpy.linalg._linalg `
1369
+ ``numpy.linalg.linalg `` was renamed to `` numpy.linalg._linalg ` `
1360
1370
to indicate that it is a private submodule. All public functions
1361
1371
exported by it should be accessed from `numpy.linalg `.
1362
1372
0 commit comments