diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-18 19:19:28 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-18 19:19:28 +0000 |
commit | ba41f2f5d864551b4462a9f53e8f23f626b11105 (patch) | |
tree | fc6b763f510398681b16beedfe2f3086cbcc1d2b /numpy/core/defmatrix.py | |
parent | fe9508708db30fde8629269792d25bea838a86e5 (diff) | |
download | numpy-ba41f2f5d864551b4462a9f53e8f23f626b11105.tar.gz |
Fix sub-classing of matrices..
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() |