From b8265d3f349378b0f969ec4bb2d79f2f1ae4827a Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Tue, 2 May 2023 11:39:54 -0700 Subject: DOC: fix indexing inconsistency in outer docstring. --- numpy/core/numeric.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'numpy/core') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 1687e2dbf..2ca587c6a 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -843,14 +843,13 @@ def outer(a, b, out=None): """ Compute the outer product of two vectors. - Given two vectors, ``a = [a0, a1, ..., aM]`` and - ``b = [b0, b1, ..., bN]``, - the outer product [1]_ is:: + Given two vectors `a` and `b` of length ``M`` and ``N``, repsectively, + the outer product is:: - [[a0*b0 a0*b1 ... a0*bN ] - [a1*b0 . + [[a_0*b_0 a_0*b_1 ... a_0*b_N-1 ] + [a_1*b_0 . [ ... . - [aM*b0 aM*bN ]] + [a_M-1*b_0 a_M-1*b_N-1 ]] Parameters ---------- -- cgit v1.2.1 From 6830a346a87bdf56c6b2f02197fdbedd59f7a287 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Tue, 2 May 2023 11:40:44 -0700 Subject: DOC: fix reference formatting. --- numpy/core/numeric.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/core') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 2ca587c6a..4d7e49c7e 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -881,9 +881,9 @@ def outer(a, b, out=None): References ---------- - .. [1] : G. H. Golub and C. F. Van Loan, *Matrix Computations*, 3rd - ed., Baltimore, MD, Johns Hopkins University Press, 1996, - pg. 8. + .. [1] G. H. Golub and C. F. Van Loan, *Matrix Computations*, 3rd + ed., Baltimore, MD, Johns Hopkins University Press, 1996, + pg. 8. Examples -------- -- cgit v1.2.1 From 086e8f3accceb06e60789c0cac524b71bf0936fc Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Tue, 2 May 2023 13:33:35 -0700 Subject: DOC: add back reference. --- numpy/core/numeric.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/core') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 4d7e49c7e..91ac3f860 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -844,12 +844,12 @@ def outer(a, b, out=None): Compute the outer product of two vectors. Given two vectors `a` and `b` of length ``M`` and ``N``, repsectively, - the outer product is:: + the outer product [1]_ is:: - [[a_0*b_0 a_0*b_1 ... a_0*b_N-1 ] + [[a_0*b_0 a_0*b_1 ... a_0*b_{N-1} ] [a_1*b_0 . [ ... . - [a_M-1*b_0 a_M-1*b_N-1 ]] + [a_{M-1}*b_0 a_{M-1}*b_{N-1} ]] Parameters ---------- -- cgit v1.2.1