diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-11-30 09:30:51 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-11-30 09:30:51 +0000 |
commit | 8dfbf5d48d60c741a066c2e86ee9b4aed5d370a1 (patch) | |
tree | d87b93b538b149f8c390fb4695495de9db7e283d /scipy/base/matrix.py | |
parent | 0376164cffd1b64f276f2a04c922e1c1727f57d4 (diff) | |
download | numpy-8dfbf5d48d60c741a066c2e86ee9b4aed5d370a1.tar.gz |
Fixed up ndchararray a bit. Fixed up use of registered data types.
Diffstat (limited to 'scipy/base/matrix.py')
-rw-r--r-- | scipy/base/matrix.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scipy/base/matrix.py b/scipy/base/matrix.py index eaebafeec..63743be9b 100644 --- a/scipy/base/matrix.py +++ b/scipy/base/matrix.py @@ -88,7 +88,8 @@ class matrix(N.ndarray): if not (fortran or arr.flags.contiguous): arr = arr.copy() - ret = N.ndarray.__new__(subtype, shape, arr.dtype, buffer=arr, + ret = N.ndarray.__new__(subtype, shape, arr.dtype, arr.itemsize, + buffer=arr, fortran=fortran, swap=arr.flags.swapped) return ret |