summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorTina Oberoi <55803680+tinaoberoi@users.noreply.github.com>2020-05-09 11:16:58 +0530
committerGitHub <noreply@github.com>2020-05-09 08:46:58 +0300
commite66453568b685dee47d6e6e634b3a47edffcaeed (patch)
tree34c34c2061843da2bff0e1d5f88c70828b344829 /numpy/core/numeric.py
parentd3e64fcf2b1c97d75bae731107cf01d6c0e37caa (diff)
downloadnumpy-e66453568b685dee47d6e6e634b3a47edffcaeed.tar.gz
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 <wieser.eric@gmail.com>
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py7
1 files changed, 5 insertions, 2 deletions
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
----------