diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-05-02 23:32:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 23:32:01 +0200 |
commit | 67de0083c5bf48041eacdca12cd26a91d68eb869 (patch) | |
tree | 35aabb10cd4157ed26160735f47cd31204e30f33 /numpy/core | |
parent | 0cd9729566963feccf2cf5b872c41e6505a649a7 (diff) | |
parent | 086e8f3accceb06e60789c0cac524b71bf0936fc (diff) | |
download | numpy-67de0083c5bf48041eacdca12cd26a91d68eb869.tar.gz |
Merge pull request #23700 from rossbar/doc/fix-23664
DOC: Resolve length/index ambiguity in numpy.outer docstring
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/numeric.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 1687e2dbf..91ac3f860 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]``, + Given two vectors `a` and `b` of length ``M`` and ``N``, repsectively, the outer product [1]_ 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 ---------- @@ -882,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 -------- |