summaryrefslogtreecommitdiff
path: root/scipy/base/matrix.py
diff options
context:
space:
mode:
Diffstat (limited to 'scipy/base/matrix.py')
-rw-r--r--scipy/base/matrix.py3
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