summaryrefslogtreecommitdiff
path: root/numpy/core/defmatrix.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-15 06:00:16 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-15 06:00:16 +0000
commit9e0de87f23c875b807bf1a2f99d5513a102104e6 (patch)
tree8e6df6bb58315dba579dade7f73298d53f858400 /numpy/core/defmatrix.py
parent03c804239307a3d71b3df0dc69e4538dcf80f1c8 (diff)
downloadnumpy-9e0de87f23c875b807bf1a2f99d5513a102104e6.tar.gz
Minor renaming.
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r--numpy/core/defmatrix.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py
index 63217b1ba..d90530fa4 100644
--- a/numpy/core/defmatrix.py
+++ b/numpy/core/defmatrix.py
@@ -127,7 +127,7 @@ class matrix(N.ndarray):
return out.A[0,0]
return out
- def _get_truend(self):
+ def _get_truendim(self):
shp = self.shape
truend = 0
for val in shp:
@@ -135,14 +135,14 @@ class matrix(N.ndarray):
return truend
def __mul__(self, other):
- if (self.ndim != self._get_truend()):
+ if (self.ndim != self._get_truendim()):
myself = self.A.squeeze()
else:
myself = self
myother = other
if isinstance(other, matrix):
- if (other.ndim != other._get_truend()):
+ if (other.ndim != other._get_truendim()):
myother = other.A.squeeze()
if isinstance(myother, N.ndarray) and myother.size == 1:
@@ -155,14 +155,14 @@ class matrix(N.ndarray):
return res
def __rmul__(self, other):
- if (self.ndim != self._get_truend()):
+ if (self.ndim != self._get_truendim()):
myself = self.A.squeeze()
else:
myself = self
myother = other
if isinstance(other, matrix):
- if (other.ndim != other._get_truend()):
+ if (other.ndim != other._get_truendim()):
myother = other.A.squeeze()
if isinstance(myother, N.ndarray) and myother.size == 1: