diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-01-06 10:14:10 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-06 10:14:10 +0000 |
commit | 6315c4c27eaeca7f2080ea585b1901e2b683b3ff (patch) | |
tree | 2777bf768a4fb125ad3ceb1940f46f70ad4e2d51 /numpy/lib/function_base.py | |
parent | 5f5c4b92573a060d20cf9bbf70db00d45cda7268 (diff) | |
download | numpy-6315c4c27eaeca7f2080ea585b1901e2b683b3ff.tar.gz |
Added new feature to .view method so that if the argument is a sub-type of the ndarray, an object is returned with all the information of the array.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 77561246e..0b9928577 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -764,7 +764,6 @@ def _chbevl(x, vals): return 0.5*(b0 - b2) - def _i0_1(x): return exp(x) * _chbevl(x/2.0-2, _i0A) @@ -780,7 +779,9 @@ def i0(x): y[ind] = _i0_1(x[ind]) ind2 = ~ind y[ind2] = _i0_2(x[ind2]) - return y.squeeze() + return y.squeeze() + +## End of cephes code for i0 def kaiser(M,beta): """kaiser(M, beta) returns a Kaiser window of length M with shape parameter |