summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-10-28 18:46:24 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-10-28 18:46:24 +0000
commit5de193472de880a05e1bdde2b3158dc5a4b44c69 (patch)
tree1c0634651d15fc4a38c212c1b05654e4e21eea5d /numpy/core/numeric.py
parent585f922308a8af2d85a3c92d0d2bb121fed538fd (diff)
downloadnumpy-5de193472de880a05e1bdde2b3158dc5a4b44c69.tar.gz
Fix usage of 'as' as a variable
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 632a6f28c..a9749b479 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -290,7 +290,7 @@ def tensordot(a, b, axes=2):
nb = 1
a, b = asarray(a), asarray(b)
- as = a.shape
+ as_ = a.shape
nda = len(a.shape)
bs = b.shape
ndb = len(b.shape)
@@ -298,7 +298,7 @@ def tensordot(a, b, axes=2):
if (na != nb): equal = 0
else:
for k in xrange(na):
- if as[axes_a[k]] != bs[axes_b[k]]:
+ if as_[axes_a[k]] != bs[axes_b[k]]:
equal = 0
break
if axes_a[k] < 0:
@@ -314,9 +314,9 @@ def tensordot(a, b, axes=2):
newaxes_a = notin + axes_a
N2 = 1
for axis in axes_a:
- N2 *= as[axis]
+ N2 *= as_[axis]
newshape_a = (-1, N2)
- olda = [as[axis] for axis in notin]
+ olda = [as_[axis] for axis in notin]
notin = [k for k in range(ndb) if k not in axes_b]
newaxes_b = axes_b + notin