diff options
Diffstat (limited to 'numpy/core/defmatrix.py')
-rw-r--r-- | numpy/core/defmatrix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/defmatrix.py b/numpy/core/defmatrix.py index c74100dda..8ac75acf1 100644 --- a/numpy/core/defmatrix.py +++ b/numpy/core/defmatrix.py @@ -261,7 +261,7 @@ class matrix(N.ndarray): if isinstance(other,(N.ndarray, list, tuple)) : # This promotes 1-D vectors to row vectors return N.dot(self, asmatrix(other)) - if N.isscalar(other) or not hasattr(other, '__rmul__') : + if isscalar(other) or not hasattr(other, '__rmul__') : return N.dot(self, other) return NotImplemented |