diff options
author | Ross Barnowski <rossbar@berkeley.edu> | 2023-05-02 11:39:54 -0700 |
---|---|---|
committer | Ross Barnowski <rossbar@berkeley.edu> | 2023-05-02 11:39:54 -0700 |
commit | b8265d3f349378b0f969ec4bb2d79f2f1ae4827a (patch) | |
tree | 59358d39eae23a4ae04b987d5a3dbb44c2b5e826 /numpy/core | |
parent | ba529fac0454be5fa2fb2b571069c6ff5582eef7 (diff) | |
download | numpy-b8265d3f349378b0f969ec4bb2d79f2f1ae4827a.tar.gz |
DOC: fix indexing inconsistency in outer docstring.
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/numeric.py | 11 |
1 files changed, 5 insertions, 6 deletions
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 ---------- |