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