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