diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-10-14 15:39:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-14 15:39:29 -0400 |
commit | b8da06bdc44b3481f9e0e17d6ff24e79176eed7c (patch) | |
tree | f33e7b447e0a11e98c4d43fb3d29dc4c9f70fec6 /numpy/core | |
parent | fa31422a411ef470fc38f9f11b4835911a626736 (diff) | |
parent | 858574468a8667486dfad5d66e83f74fbe5ed91b (diff) | |
download | numpy-b8da06bdc44b3481f9e0e17d6ff24e79176eed7c.tar.gz |
Merge pull request #8156 from mattharrigan/einsum-doc
DOC: added example with empty indices for a scalar, #8138
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/einsumfunc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py index 97eb7924f..0b15c213b 100644 --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -863,6 +863,9 @@ def einsum(*operands, **kwargs): >>> np.einsum('..., ...', 3, c) array([[ 0, 3, 6], [ 9, 12, 15]]) + >>> np.einsum(',ij', 3, C) + array([[ 0, 3, 6], + [ 9, 12, 15]]) >>> np.einsum(3, [Ellipsis], c, [Ellipsis]) array([[ 0, 3, 6], [ 9, 12, 15]]) |