added example04 for clfft inplace complex-interleaved transform
This commit is contained in:
13
example04/main.py
Normal file
13
example04/main.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import numpy as np
|
||||
import scipy.fftpack as fft
|
||||
|
||||
N = 128
|
||||
v = np.arange(N) + 2*np.arange(N)*1j
|
||||
|
||||
v_fft = fft.fft(v)
|
||||
|
||||
v_fft_altered = 2 * v_fft
|
||||
|
||||
v_final = fft.ifft(v_fft_altered)
|
||||
|
||||
print v_final
|
||||
Reference in New Issue
Block a user