From 527937eb3df319c23a9ccfe26558739acec14e8c Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Mon, 28 Aug 2006 20:01:34 +0000 Subject: Fix sundry errors. --- numpy/core/numeric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/numeric.py') 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) -- cgit v1.2.1