rfftw.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*******************************************************************************
  2. ! Copyright (c) 2003 Matteo Frigo
  3. ! Copyright (c) 2003 Massachusetts Institute of Technology
  4. !
  5. ! This program is distributed with permission
  6. !
  7. !*******************************************************************************/
  8. /* rfftw.h -- system-wide definitions for rfftw */
  9. #ifndef RFFTW_H
  10. #define RFFTW_H
  11. #include "fftw.h"
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif /* __cplusplus */
  15. /****************************************************************************/
  16. #define RFFTW_V2
  17. typedef fftw_plan rfftw_plan;
  18. typedef fftwnd_plan rfftwnd_plan;
  19. #define FFTW_REAL_TO_COMPLEX FFTW_FORWARD
  20. #define FFTW_COMPLEX_TO_REAL FFTW_BACKWARD
  21. extern void rfftw(rfftw_plan plan, int howmany, fftw_real *in, int istride,
  22. int idist, fftw_real *out, int ostride, int odist);
  23. extern void rfftw_one(rfftw_plan plan, fftw_real *in, fftw_real *out);
  24. extern rfftw_plan rfftw_create_plan_specific(int n, fftw_direction dir,
  25. int flags,
  26. fftw_real *in, int istride,
  27. fftw_real *out, int ostride);
  28. extern rfftw_plan rfftw_create_plan(int n, fftw_direction dir, int flags);
  29. extern void rfftw_destroy_plan(rfftw_plan plan);
  30. extern void rfftw_fprint_plan(FILE *f, rfftw_plan p);
  31. extern void rfftw_print_plan(rfftw_plan p);
  32. extern void rfftw_executor_simple(int n, fftw_real *in,
  33. fftw_real *out,
  34. fftw_plan_node *p,
  35. int istride,
  36. int ostride,
  37. fftw_recurse_kind recurse_kind);
  38. extern rfftwnd_plan rfftwnd_create_plan_specific(int rank, const int *n,
  39. fftw_direction dir, int flags,
  40. fftw_real *in, int istride,
  41. fftw_real *out, int ostride);
  42. extern rfftwnd_plan rfftw2d_create_plan_specific(int nx, int ny,
  43. fftw_direction dir, int flags,
  44. fftw_real *in, int istride,
  45. fftw_real *out, int ostride);
  46. extern rfftwnd_plan rfftw3d_create_plan_specific(int nx, int ny, int nz,
  47. fftw_direction dir, int flags,
  48. fftw_real *in, int istride,
  49. fftw_real *out, int ostride);
  50. extern rfftwnd_plan rfftwnd_create_plan(int rank, const int *n,
  51. fftw_direction dir, int flags);
  52. extern rfftwnd_plan rfftw2d_create_plan(int nx, int ny,
  53. fftw_direction dir, int flags);
  54. extern rfftwnd_plan rfftw3d_create_plan(int nx, int ny, int nz,
  55. fftw_direction dir, int flags);
  56. extern void rfftwnd_destroy_plan(rfftwnd_plan plan);
  57. extern void rfftwnd_fprint_plan(FILE *f, rfftwnd_plan plan);
  58. extern void rfftwnd_print_plan(rfftwnd_plan plan);
  59. extern void rfftwnd_real_to_complex(rfftwnd_plan p, int howmany,
  60. fftw_real *in, int istride, int idist,
  61. fftw_complex *out, int ostride, int odist);
  62. extern void rfftwnd_complex_to_real(rfftwnd_plan p, int howmany,
  63. fftw_complex *in, int istride, int idist,
  64. fftw_real *out, int ostride, int odist);
  65. extern void rfftwnd_one_real_to_complex(rfftwnd_plan p,
  66. fftw_real *in, fftw_complex *out);
  67. extern void rfftwnd_one_complex_to_real(rfftwnd_plan p,
  68. fftw_complex *in, fftw_real *out);
  69. /****************************************************************************/
  70. #ifdef __cplusplus
  71. } /* extern "C" */
  72. #endif /* __cplusplus */
  73. #endif /* RFFTW_H */