diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-02-23 19:47:07 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-02-23 19:47:07 +0000 |
commit | a497e908f91baea611dadc3fbcf51853d5c38960 (patch) | |
tree | c7437267e615b2326f5fa31d1486305863818361 /numpy/lib/UserArray.py | |
parent | 7adb2e2d0abc93ca9572ff451ff3ca1acdfce4cb (diff) | |
download | numpy-a497e908f91baea611dadc3fbcf51853d5c38960.tar.gz |
Fix scalar-multiply dotblas error for non-double types. Preserve more matrices through functions
Diffstat (limited to 'numpy/lib/UserArray.py')
-rw-r--r-- | numpy/lib/UserArray.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/UserArray.py b/numpy/lib/UserArray.py index fefa1e0cd..243b22d70 100644 --- a/numpy/lib/UserArray.py +++ b/numpy/lib/UserArray.py @@ -182,6 +182,9 @@ class UserArray: if len(shape(a)) == 0: return a else: return self.__class__(a) + def __array_wrap__(self, *args): + return self.__class__(args[0]) + def __setattr__(self,attr,value): if attr=='shape': self.array.shape=value |