summaryrefslogtreecommitdiff
path: root/numpy/core/defmatrix.py
diff options
context:
space:
mode:
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: