summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2021-11-03 13:17:32 -0400
committerGitHub <noreply@github.com>2021-11-03 13:17:32 -0400
commit60b01f9c7bd6e992191f20b7f2d8fcdb13f3d474 (patch)
tree844a26a3a6b7a63ae5bbf0670c9ad10a96c6690e
parentb7dc11cbc1dc4c41475f001f2ee5ccbfe6d1a847 (diff)
parent167539e4c2fdc6b77d6c73c9eebfa77e1507423e (diff)
downloadnumpy-60b01f9c7bd6e992191f20b7f2d8fcdb13f3d474.tar.gz
Merge pull request #20290 from Carreau/doublecolon
DOC: Do not leave space between directive name and double colon.
-rw-r--r--doc/neps/nep-0013-ufunc-overrides.rst2
-rw-r--r--doc/neps/nep-0027-zero-rank-arrarys.rst2
-rw-r--r--numpy/lib/polynomial.py2
-rw-r--r--numpy/polynomial/chebyshev.py4
-rw-r--r--numpy/polynomial/polynomial.py4
-rw-r--r--numpy/polynomial/polyutils.py4
6 files changed, 9 insertions, 9 deletions
diff --git a/doc/neps/nep-0013-ufunc-overrides.rst b/doc/neps/nep-0013-ufunc-overrides.rst
index 2f455e9b4..c132113db 100644
--- a/doc/neps/nep-0013-ufunc-overrides.rst
+++ b/doc/neps/nep-0013-ufunc-overrides.rst
@@ -556,7 +556,7 @@ in turn immediately raises :exc:`TypeError`, because one of its operands
``arr.__array_ufunc__``, which will return :obj:`NotImplemented`, which
we catch.
-.. note :: the reason for not allowing in-place operations to return
+.. note:: the reason for not allowing in-place operations to return
:obj:`NotImplemented` is that these cannot generically be replaced by
a simple reverse operation: most array operations assume the contents
of the instance are changed in-place, and do not expect a new
diff --git a/doc/neps/nep-0027-zero-rank-arrarys.rst b/doc/neps/nep-0027-zero-rank-arrarys.rst
index 4515cf96f..eef4bcacc 100644
--- a/doc/neps/nep-0027-zero-rank-arrarys.rst
+++ b/doc/neps/nep-0027-zero-rank-arrarys.rst
@@ -10,7 +10,7 @@ NEP 27 — Zero rank arrays
:Created: 2006-06-10
:Resolution: https://mail.python.org/pipermail/numpy-discussion/2018-October/078824.html
-.. note ::
+.. note::
NumPy has both zero rank arrays and scalars. This design document, adapted
from a `2006 wiki entry`_, describes what zero rank arrays are and why they
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index 1cbb3cd88..f824c4c5e 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -550,7 +550,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
-----
The solution minimizes the squared error
- .. math ::
+ .. math::
E = \\sum_{j=0}^k |p(x_j) - y_j|^2
in the equations::
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py
index 2b3268aeb..89ce815d5 100644
--- a/numpy/polynomial/chebyshev.py
+++ b/numpy/polynomial/chebyshev.py
@@ -88,13 +88,13 @@ Notes
The implementations of multiplication, division, integration, and
differentiation use the algebraic identities [1]_:
-.. math ::
+.. math::
T_n(x) = \\frac{z^n + z^{-n}}{2} \\\\
z\\frac{dx}{dz} = \\frac{z - z^{-1}}{2}.
where
-.. math :: x = \\frac{z + z^{-1}}{2}.
+.. math:: x = \\frac{z + z^{-1}}{2}.
These identities allow a Chebyshev series to be expressed as a finite,
symmetric Laurent series. In this module, this sort of Laurent series
diff --git a/numpy/polynomial/polynomial.py b/numpy/polynomial/polynomial.py
index 2fead88ab..3c2663b6c 100644
--- a/numpy/polynomial/polynomial.py
+++ b/numpy/polynomial/polynomial.py
@@ -1304,12 +1304,12 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None):
The solution is the coefficients of the polynomial `p` that minimizes
the sum of the weighted squared errors
- .. math :: E = \\sum_j w_j^2 * |y_j - p(x_j)|^2,
+ .. math:: E = \\sum_j w_j^2 * |y_j - p(x_j)|^2,
where the :math:`w_j` are the weights. This problem is solved by
setting up the (typically) over-determined matrix equation:
- .. math :: V(x) * c = w * y,
+ .. math:: V(x) * c = w * y,
where `V` is the weighted pseudo Vandermonde matrix of `x`, `c` are the
coefficients to be solved for, `w` are the weights, and `y` are the
diff --git a/numpy/polynomial/polyutils.py b/numpy/polynomial/polyutils.py
index 3b0f0a9e5..a2bc75a4d 100644
--- a/numpy/polynomial/polyutils.py
+++ b/numpy/polynomial/polyutils.py
@@ -330,12 +330,12 @@ def mapdomain(x, old, new):
-----
Effectively, this implements:
- .. math ::
+ .. math::
x\\_out = new[0] + m(x - old[0])
where
- .. math ::
+ .. math::
m = \\frac{new[1]-new[0]}{old[1]-old[0]}
Examples