diff options
author | MattHarrigan <harrigan.matthew@gmail.com> | 2016-10-14 15:06:53 -0400 |
---|---|---|
committer | MattHarrigan <harrigan.matthew@gmail.com> | 2016-10-14 15:06:53 -0400 |
commit | 858574468a8667486dfad5d66e83f74fbe5ed91b (patch) | |
tree | cf8f8a7ac8c82df2b78ef6aa74aa6079d4b83c85 /numpy/core | |
parent | ee41e9dfd2a0a6241e0d9e95fb355bfc92383fea (diff) | |
download | numpy-858574468a8667486dfad5d66e83f74fbe5ed91b.tar.gz |
DOC: added example with empty indices for a scalar
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]]) |