1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
# cython: language_level=3str
cdef extern from "fftw3.h" nogil:
ctypedef struct fftw_complex_struct:
pass
ctypedef fftw_complex_struct *fftw_complex
ctypedef struct fftw_plan_struct:
pass
ctypedef fftw_plan_struct *fftw_plan
void fftw_destroy_plan(fftw_plan)
void fftw_execute_dft(fftw_plan, void *_in, void *_out)
void fftw_execute_dft_c2r(fftw_plan, void *_in, void *_out)
void fftw_execute_dft_r2c(fftw_plan, void *_in, void *_out)
void fftw_execute_r2r(fftw_plan, void *_in, void *_out)
void fftw_execute(fftw_plan)
void fftw_init_threads()
void fftw_plan_with_nthreads(int n)
int fftw_export_wisdom_to_filename(const char *filename)
int fftw_import_wisdom_from_filename(const char *filename)
void fftw_forget_wisdom()
void fftw_set_timelimit(double seconds)
void fftw_cleanup()
void fftw_cleanup_threads()
int fftw_alignment_of(void *_in)
void fftw_print_plan(fftw_plan)
cdef extern from "fftw_planxfftn.h" nogil:
ctypedef double fftw_real
fftw_plan fftw_planxfftn(int ndims,
int sizes_in[],
void *_in,
int sizes_out[],
void *_out,
int naxes,
int axes[],
int kind[],
unsigned flags)
ctypedef void (*generic_function)(void *plan, void *_in, void *_out) noexcept nogil
|