Skip to content

Commit df44639

Browse files
committed
DOC: fix all Sphinx warnings in 2.0.0-notes
[skip azp] [skip actions] [skip cirrus]
1 parent 431bf0a commit df44639

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

doc/release/upcoming_changes/21760.compatibility.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/source/reference/routines.linalg.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Matrix and vector products
5757
linalg.multi_dot
5858
vdot
5959
vecdot
60+
linalg.vecdot
6061
inner
6162
outer
6263
matmul

doc/source/release/2.0.0-notes.rst

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,16 @@ reconstructed by using ``np.solve(a, b[..., None])[..., 0]``.
440440

441441
(`gh-25914 <https://github.com/numpy/numpy/pull/25914>`__)
442442

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+
443453

444454
C API changes
445455
=============
@@ -467,7 +477,7 @@ C API changes
467477

468478
(`gh-25789 <https://github.com/numpy/numpy/pull/25789>`__)
469479

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
471481
address. Unlike ``PyArray_SETITEM`` this function is equivalent to setting
472482
an individual array item and does not require a NumPy array input.
473483

@@ -603,7 +613,7 @@ for simpler backporting.
603613

604614
Structured dtype information access through functions
605615
-----------------------------------------------------
606-
The dtype structures fields `c_metadata``, ``names``,
616+
The dtype structures fields ``c_metadata``, ``names``,
607617
``fields``, and ``subarray`` must now be accessed through new
608618
functions following the same names, such as ``PyDataType_NAMES``.
609619
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.
616626
Descriptor ``elsize`` and ``alignment`` access
617627
----------------------------------------------
618628
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``.
621631
In cases where the descriptor is attached to an array, we advise
622632
using ``PyArray_ITEMSIZE`` as it exists on all NumPy versions.
623633
Please see :ref:`migration_c_descr` for more information.
@@ -1347,7 +1357,7 @@ However, it means that:
13471357
``numpy.fft.helper`` made private
13481358
---------------------------------
13491359

1350-
``numpy.fft.helper`` was renamed to `numpy.fft._helper` to indicate
1360+
``numpy.fft.helper`` was renamed to ``numpy.fft._helper`` to indicate
13511361
that it is a private submodule. All public functions exported by it
13521362
should be accessed from `numpy.fft`.
13531363

@@ -1356,7 +1366,7 @@ should be accessed from `numpy.fft`.
13561366
``numpy.linalg.linalg`` made private
13571367
------------------------------------
13581368

1359-
``numpy.linalg.linalg`` was renamed to `numpy.linalg._linalg`
1369+
``numpy.linalg.linalg`` was renamed to ``numpy.linalg._linalg``
13601370
to indicate that it is a private submodule. All public functions
13611371
exported by it should be accessed from `numpy.linalg`.
13621372

0 commit comments

Comments
 (0)