1 /* fourier.h -- fourier headers */
12 #define F_NOT_SUPPORTED -2
13 #define F_DIM_FAILURE -3
14 #define F_ALLOC_FAIL -4
16 /* fourier specific variables */
17 typedef struct s_complex {
22 typedef struct s_fourier {
31 t_complex *data[MAX_DIM];
32 t_complex *ftdata[MAX_DIM];
33 int data_len[MAX_DIM];
36 /* function prototypes */
37 int fourier_init(t_fourier *fourier,int outfd);
38 int fourier_dft_1d(t_fourier *fourier);
39 int fourier_calc(t_fourier *fourier);