summaryrefslogtreecommitdiff
path: root/numpy/fft/fftpack.py
diff options
context:
space:
mode:
authorTushar Gautam <tushar.rishav@gmail.com>2016-01-19 01:11:13 +0530
committerTushar Gautam <tushar.rishav@gmail.com>2016-01-19 01:11:13 +0530
commitd426ed91b41293f75c90e1795b72c017e8d435ef (patch)
tree51e47d41cf33b0170c6db7b86c47ad0311fd43c9 /numpy/fft/fftpack.py
parentaa824670cf6ad21c2f921856ba4eec00781347fe (diff)
downloadnumpy-d426ed91b41293f75c90e1795b72c017e8d435ef.tar.gz
BUG:Should fix astype cast bug in numpy.fft module
Closes #6693
Diffstat (limited to 'numpy/fft/fftpack.py')
-rw-r--r--numpy/fft/fftpack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/fft/fftpack.py b/numpy/fft/fftpack.py
index c3bb732b2..275be0d77 100644
--- a/numpy/fft/fftpack.py
+++ b/numpy/fft/fftpack.py
@@ -183,7 +183,7 @@ def fft(a, n=None, axis=-1, norm=None):
"""
- a = asarray(a).astype(complex)
+ a = asarray(a).astype(complex, copy=False)
if n is None:
n = a.shape[axis]
output = _raw_fft(a, n, axis, fftpack.cffti, fftpack.cfftf, _fft_cache)