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 66057be17..bfcb68364 100644 --- a/numpy/core/defmatrix.py +++ b/numpy/core/defmatrix.py @@ -68,7 +68,7 @@ class matrix(N.ndarray): intype = data.dtype else: intype = N.dtype(dtype) - new = data.view(matrix) + new = data.view(subtype) if intype != data.dtype: return new.astype(intype) if copy: return new.copy() |