From e66453568b685dee47d6e6e634b3a47edffcaeed Mon Sep 17 00:00:00 2001 From: Tina Oberoi <55803680+tinaoberoi@users.noreply.github.com> Date: Sat, 9 May 2020 11:16:58 +0530 Subject: Update Docs : point users of np.outer to np.multiply.outer (#16182) * Update notes for numpy.outer and numpy.multiply.outer * Add tenserdot to numpy.outer documentation Co-authored-by: Eric Wieser --- numpy/core/numeric.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 83d985a7c..17b435c74 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -857,8 +857,11 @@ def outer(a, b, out=None): -------- inner einsum : ``einsum('i,j->ij', a.ravel(), b.ravel())`` is the equivalent. - ufunc.outer : A generalization to N dimensions and other operations. - ``np.multiply.outer(a.ravel(), b.ravel())`` is the equivalent. + ufunc.outer : A generalization to dimensions other than 1D and other + operations. ``np.multiply.outer(a.ravel(), b.ravel())`` + is the equivalent. + tensordot : ``np.tensordot(a.ravel(), b.ravel(), axes=((), ()))`` + is the equivalent. References ---------- -- cgit v1.2.1