| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- /*******************************************************************************
- ! Copyright (c) 2003 Matteo Frigo
- ! Copyright (c) 2003 Massachusetts Institute of Technology
- !
- ! This program is distributed with permission
- !
- !*******************************************************************************/
- /* rfftw.h -- system-wide definitions for rfftw */
- #ifndef RFFTW_H
- #define RFFTW_H
- #include "fftw.h"
- #ifdef __cplusplus
- extern "C" {
- #endif /* __cplusplus */
- /****************************************************************************/
- #define RFFTW_V2
- typedef fftw_plan rfftw_plan;
- typedef fftwnd_plan rfftwnd_plan;
- #define FFTW_REAL_TO_COMPLEX FFTW_FORWARD
- #define FFTW_COMPLEX_TO_REAL FFTW_BACKWARD
- extern void rfftw(rfftw_plan plan, int howmany, fftw_real *in, int istride,
- int idist, fftw_real *out, int ostride, int odist);
- extern void rfftw_one(rfftw_plan plan, fftw_real *in, fftw_real *out);
- extern rfftw_plan rfftw_create_plan_specific(int n, fftw_direction dir,
- int flags,
- fftw_real *in, int istride,
- fftw_real *out, int ostride);
- extern rfftw_plan rfftw_create_plan(int n, fftw_direction dir, int flags);
- extern void rfftw_destroy_plan(rfftw_plan plan);
- extern void rfftw_fprint_plan(FILE *f, rfftw_plan p);
- extern void rfftw_print_plan(rfftw_plan p);
- extern void rfftw_executor_simple(int n, fftw_real *in,
- fftw_real *out,
- fftw_plan_node *p,
- int istride,
- int ostride,
- fftw_recurse_kind recurse_kind);
- extern rfftwnd_plan rfftwnd_create_plan_specific(int rank, const int *n,
- fftw_direction dir, int flags,
- fftw_real *in, int istride,
- fftw_real *out, int ostride);
- extern rfftwnd_plan rfftw2d_create_plan_specific(int nx, int ny,
- fftw_direction dir, int flags,
- fftw_real *in, int istride,
- fftw_real *out, int ostride);
- extern rfftwnd_plan rfftw3d_create_plan_specific(int nx, int ny, int nz,
- fftw_direction dir, int flags,
- fftw_real *in, int istride,
- fftw_real *out, int ostride);
- extern rfftwnd_plan rfftwnd_create_plan(int rank, const int *n,
- fftw_direction dir, int flags);
- extern rfftwnd_plan rfftw2d_create_plan(int nx, int ny,
- fftw_direction dir, int flags);
- extern rfftwnd_plan rfftw3d_create_plan(int nx, int ny, int nz,
- fftw_direction dir, int flags);
- extern void rfftwnd_destroy_plan(rfftwnd_plan plan);
- extern void rfftwnd_fprint_plan(FILE *f, rfftwnd_plan plan);
- extern void rfftwnd_print_plan(rfftwnd_plan plan);
- extern void rfftwnd_real_to_complex(rfftwnd_plan p, int howmany,
- fftw_real *in, int istride, int idist,
- fftw_complex *out, int ostride, int odist);
- extern void rfftwnd_complex_to_real(rfftwnd_plan p, int howmany,
- fftw_complex *in, int istride, int idist,
- fftw_real *out, int ostride, int odist);
- extern void rfftwnd_one_real_to_complex(rfftwnd_plan p,
- fftw_real *in, fftw_complex *out);
- extern void rfftwnd_one_complex_to_real(rfftwnd_plan p,
- fftw_complex *in, fftw_real *out);
- /****************************************************************************/
- #ifdef __cplusplus
- } /* extern "C" */
- #endif /* __cplusplus */
- #endif /* RFFTW_H */
|