Skip to content

Commit 60b01f9

Browse files
Merge pull request numpy#20290 from Carreau/doublecolon
DOC: Do not leave space between directive name and double colon.
2 parents b7dc11c + 167539e commit 60b01f9

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

doc/neps/nep-0013-ufunc-overrides.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ in turn immediately raises :exc:`TypeError`, because one of its operands
556556
``arr.__array_ufunc__``, which will return :obj:`NotImplemented`, which
557557
we catch.
558558

559-
.. note :: the reason for not allowing in-place operations to return
559+
.. note:: the reason for not allowing in-place operations to return
560560
:obj:`NotImplemented` is that these cannot generically be replaced by
561561
a simple reverse operation: most array operations assume the contents
562562
of the instance are changed in-place, and do not expect a new

doc/neps/nep-0027-zero-rank-arrarys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ NEP 27 — Zero rank arrays
1010
:Created: 2006-06-10
1111
:Resolution: https://mail.python.org/pipermail/numpy-discussion/2018-October/078824.html
1212

13-
.. note ::
13+
.. note::
1414

1515
NumPy has both zero rank arrays and scalars. This design document, adapted
1616
from a `2006 wiki entry`_, describes what zero rank arrays are and why they

numpy/lib/polynomial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
550550
-----
551551
The solution minimizes the squared error
552552
553-
.. math ::
553+
.. math::
554554
E = \\sum_{j=0}^k |p(x_j) - y_j|^2
555555
556556
in the equations::

numpy/polynomial/chebyshev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@
8888
The implementations of multiplication, division, integration, and
8989
differentiation use the algebraic identities [1]_:
9090
91-
.. math ::
91+
.. math::
9292
T_n(x) = \\frac{z^n + z^{-n}}{2} \\\\
9393
z\\frac{dx}{dz} = \\frac{z - z^{-1}}{2}.
9494
9595
where
9696
97-
.. math :: x = \\frac{z + z^{-1}}{2}.
97+
.. math:: x = \\frac{z + z^{-1}}{2}.
9898
9999
These identities allow a Chebyshev series to be expressed as a finite,
100100
symmetric Laurent series. In this module, this sort of Laurent series

numpy/polynomial/polynomial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,12 +1304,12 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None):
13041304
The solution is the coefficients of the polynomial `p` that minimizes
13051305
the sum of the weighted squared errors
13061306
1307-
.. math :: E = \\sum_j w_j^2 * |y_j - p(x_j)|^2,
1307+
.. math:: E = \\sum_j w_j^2 * |y_j - p(x_j)|^2,
13081308
13091309
where the :math:`w_j` are the weights. This problem is solved by
13101310
setting up the (typically) over-determined matrix equation:
13111311
1312-
.. math :: V(x) * c = w * y,
1312+
.. math:: V(x) * c = w * y,
13131313
13141314
where `V` is the weighted pseudo Vandermonde matrix of `x`, `c` are the
13151315
coefficients to be solved for, `w` are the weights, and `y` are the

numpy/polynomial/polyutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,12 @@ def mapdomain(x, old, new):
330330
-----
331331
Effectively, this implements:
332332
333-
.. math ::
333+
.. math::
334334
x\\_out = new[0] + m(x - old[0])
335335
336336
where
337337
338-
.. math ::
338+
.. math::
339339
m = \\frac{new[1]-new[0]}{old[1]-old[0]}
340340
341341
Examples

0 commit comments

Comments
 (0)