From f8f8ca74391b5681d4e16bccc282ada87a6d0b8d Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Thu, 5 Jan 2006 10:57:06 +0000 Subject: Copy input for i0 calculation. --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') 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] -- cgit v1.2.1