summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-28 20:01:34 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-28 20:01:34 +0000
commit527937eb3df319c23a9ccfe26558739acec14e8c (patch)
tree7f5ac82ac44d4023df0903ed97f858629d6bb1fa /numpy/core/numeric.py
parent0f23250d0f7f84f1c69ccd85d13338714343d4c1 (diff)
downloadnumpy-527937eb3df319c23a9ccfe26558739acec14e8c.tar.gz
Fix sundry errors.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index b89fc0586..34c8b17d0 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -252,7 +252,7 @@ except ImportError:
def restoredot():
pass
-def tensordot(a, b, axes=(-1,0))
+def tensordot(a, b, axes=(-1,0)):
"""tensordot returns the product for any (ndim >= 1) arrays.
r_{xxx, yyy} = \sum_k a_{xxx,k} b_{k,yyy} where
@@ -286,7 +286,7 @@ def tensordot(a, b, axes=(-1,0))
if not equal:
raise ValueError, "shape-mismatch for sum"
- olda = [ for k in aa if k not in axes_a]
+ olda = [k for k in aa if k not in axes_a]
oldb = [k for k in bs if k not in axes_b]
at = a.reshape(nd1, nd2)