diff options
author | Matti Picus <matti.picus@gmail.com> | 2019-10-15 23:31:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-15 23:31:48 +0300 |
commit | 3b6049280fd96329d4e8d481cfd1119cc7695f94 (patch) | |
tree | 1a111df0c4d7727e82c8c7a700d8055452d436fe /numpy/core/numeric.py | |
parent | 8f1349030e85ed8fa58c17cd4b7b01dcaa373d79 (diff) | |
parent | 10a7a4a815105e16828fe83fb89778c3bbafe692 (diff) | |
download | numpy-3b6049280fd96329d4e8d481cfd1119cc7695f94.tar.gz |
Merge pull request #12129 from ydup/master
DOC: Improve axes shift description and example in np.tensordot
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 6d25f864b..b5568fd86 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -960,6 +960,9 @@ def tensordot(a, b, axes=2): two sequences of the same length, with the first axis to sum over given first in both sequences, the second axis second, and so forth. + The shape of the result consists of the non-contracted axes of the + first tensor, followed by the non-contracted axes of the second. + Examples -------- A "traditional" example: |