diff options
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index b3c94a264..77561246e 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -772,7 +772,7 @@ def _i0_2(x): return exp(x) * _chbevl(32.0/x - 2.0, _i0B) / sqrt(x) def i0(x): - x = atleast_1d(x) + x = atleast_1d(x).copy() y = empty_like(x) ind = (x<0) x[ind] = -x[ind] |