summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-03-01 19:53:39 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2013-03-03 12:55:35 +0100
commit610faef24ae57bfb9e9e7f95179e1e405f4c9f0d (patch)
tree88c826942840243995b2f364ad4bc2a671d76d9f /numpy
parentc11fa494fd8f7efcf70097d052b13d8b25caa1ab (diff)
downloadnumpy-610faef24ae57bfb9e9e7f95179e1e405f4c9f0d.tar.gz
TST: Add test that einsum multiplies scalars fine
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_einsum.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/tests/test_einsum.py b/numpy/core/tests/test_einsum.py
index 4fba533db..a60d9a415 100644
--- a/numpy/core/tests/test_einsum.py
+++ b/numpy/core/tests/test_einsum.py
@@ -241,6 +241,7 @@ class TestEinSum(TestCase):
assert_equal(np.einsum(a, [0,0]), np.trace(a).astype(dtype))
# multiply(a, b)
+ assert_equal(np.einsum("..., ...", 3, 4), 12) # scalar case
for n in range(1,17):
a = np.arange(3*n, dtype=dtype).reshape(3,n)
b = np.arange(2*3*n, dtype=dtype).reshape(2,3,n)