diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-04-26 19:06:40 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-04-26 19:06:40 +0000 |
commit | 39e6217284a36d4ee447a7c60aacf971f27b67fd (patch) | |
tree | a34c0d1537bb5f8e6821039bf27f78ba82ec1567 /numpy/lib | |
parent | 6a720229ed41099a47ea8f94ca10bcdeee8f898d (diff) | |
download | numpy-39e6217284a36d4ee447a7c60aacf971f27b67fd.tar.gz |
Add new C-API function in middle. Bump C-API version number.
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 755a182e6..d590caa6c 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -616,9 +616,9 @@ class vectorize(object): self.lastcallargs = nargs if self.nout == 1: - return asarray(self.ufunc(*args)).astype(self.otypes[0]) + return array(self.ufunc(*args),copy=False).astype(self.otypes[0]) else: - return tuple([asarray(x).astype(c) \ + return tuple([array(x,copy=False).astype(c) \ for x, c in zip(self.ufunc(*args), self.otypes)]) def cov(m,y=None, rowvar=1, bias=0): |