andrew@0
|
1 /*
|
andrew@0
|
2 * Copyright (c) 2003, 2007-8 Matteo Frigo
|
andrew@0
|
3 * Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology
|
andrew@0
|
4 *
|
andrew@0
|
5 * The following statement of license applies *only* to this header file,
|
andrew@0
|
6 * and *not* to the other files distributed with FFTW or derived therefrom:
|
andrew@0
|
7 *
|
andrew@0
|
8 * Redistribution and use in source and binary forms, with or without
|
andrew@0
|
9 * modification, are permitted provided that the following conditions
|
andrew@0
|
10 * are met:
|
andrew@0
|
11 *
|
andrew@0
|
12 * 1. Redistributions of source code must retain the above copyright
|
andrew@0
|
13 * notice, this list of conditions and the following disclaimer.
|
andrew@0
|
14 *
|
andrew@0
|
15 * 2. Redistributions in binary form must reproduce the above copyright
|
andrew@0
|
16 * notice, this list of conditions and the following disclaimer in the
|
andrew@0
|
17 * documentation and/or other materials provided with the distribution.
|
andrew@0
|
18 *
|
andrew@0
|
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
andrew@0
|
20 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
andrew@0
|
21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
andrew@0
|
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
andrew@0
|
23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
andrew@0
|
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
andrew@0
|
25 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
andrew@0
|
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
andrew@0
|
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
andrew@0
|
28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
andrew@0
|
29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
andrew@0
|
30 */
|
andrew@0
|
31
|
andrew@0
|
32 /***************************** NOTE TO USERS *********************************
|
andrew@0
|
33 *
|
andrew@0
|
34 * THIS IS A HEADER FILE, NOT A MANUAL
|
andrew@0
|
35 *
|
andrew@0
|
36 * If you want to know how to use FFTW, please read the manual,
|
andrew@0
|
37 * online at http://www.fftw.org/doc/ and also included with FFTW.
|
andrew@0
|
38 * For a quick start, see the manual's tutorial section.
|
andrew@0
|
39 *
|
andrew@0
|
40 * (Reading header files to learn how to use a library is a habit
|
andrew@0
|
41 * stemming from code lacking a proper manual. Arguably, it's a
|
andrew@0
|
42 * *bad* habit in most cases, because header files can contain
|
andrew@0
|
43 * interfaces that are not part of the public, stable API.)
|
andrew@0
|
44 *
|
andrew@0
|
45 ****************************************************************************/
|
andrew@0
|
46
|
andrew@0
|
47 #ifndef FFTW3_H
|
andrew@0
|
48 #define FFTW3_H
|
andrew@0
|
49
|
andrew@0
|
50 #include <stdio.h>
|
andrew@0
|
51
|
andrew@0
|
52 #ifdef __cplusplus
|
andrew@0
|
53 extern "C"
|
andrew@0
|
54 {
|
andrew@0
|
55 #endif /* __cplusplus */
|
andrew@0
|
56
|
andrew@0
|
57 /* If <complex.h> is included, use the C99 complex type. Otherwise
|
andrew@0
|
58 define a type bit-compatible with C99 complex */
|
andrew@0
|
59 #if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I)
|
andrew@0
|
60 # define FFTW_DEFINE_COMPLEX(R, C) typedef R _Complex C
|
andrew@0
|
61 #else
|
andrew@0
|
62 # define FFTW_DEFINE_COMPLEX(R, C) typedef R C[2]
|
andrew@0
|
63 #endif
|
andrew@0
|
64
|
andrew@0
|
65 #define FFTW_CONCAT(prefix, name) prefix ## name
|
andrew@0
|
66 #define FFTW_MANGLE_DOUBLE(name) FFTW_CONCAT(fftw_, name)
|
andrew@0
|
67 #define FFTW_MANGLE_FLOAT(name) FFTW_CONCAT(fftwf_, name)
|
andrew@0
|
68 #define FFTW_MANGLE_LONG_DOUBLE(name) FFTW_CONCAT(fftwl_, name)
|
andrew@0
|
69
|
andrew@0
|
70 /* IMPORTANT: for Windows compilers, you should add a line
|
andrew@0
|
71 #define FFTW_DLL
|
andrew@0
|
72 here and in kernel/ifftw.h if you are compiling/using FFTW as a
|
andrew@0
|
73 DLL, in order to do the proper importing/exporting, or
|
andrew@0
|
74 alternatively compile with -DFFTW_DLL or the equivalent
|
andrew@0
|
75 command-line flag. This is not necessary under MinGW/Cygwin, where
|
andrew@0
|
76 libtool does the imports/exports automatically. */
|
andrew@0
|
77 #if defined(FFTW_DLL) && (defined(_WIN32) || defined(__WIN32__))
|
andrew@0
|
78 /* annoying Windows syntax for shared-library declarations */
|
andrew@0
|
79 # if defined(COMPILING_FFTW) /* defined in api.h when compiling FFTW */
|
andrew@0
|
80 # define FFTW_EXTERN extern __declspec(dllexport)
|
andrew@0
|
81 # else /* user is calling FFTW; import symbol */
|
andrew@0
|
82 # define FFTW_EXTERN extern __declspec(dllimport)
|
andrew@0
|
83 # endif
|
andrew@0
|
84 #else
|
andrew@0
|
85 # define FFTW_EXTERN extern
|
andrew@0
|
86 #endif
|
andrew@0
|
87
|
andrew@0
|
88 enum fftw_r2r_kind_do_not_use_me {
|
andrew@0
|
89 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
|
andrew@0
|
90 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
|
andrew@0
|
91 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
|
andrew@0
|
92 };
|
andrew@0
|
93
|
andrew@0
|
94 struct fftw_iodim_do_not_use_me {
|
andrew@0
|
95 int n; /* dimension size */
|
andrew@0
|
96 int is; /* input stride */
|
andrew@0
|
97 int os; /* output stride */
|
andrew@0
|
98 };
|
andrew@0
|
99
|
andrew@0
|
100 #include <stddef.h> /* for ptrdiff_t */
|
andrew@0
|
101 struct fftw_iodim64_do_not_use_me {
|
andrew@0
|
102 ptrdiff_t n; /* dimension size */
|
andrew@0
|
103 ptrdiff_t is; /* input stride */
|
andrew@0
|
104 ptrdiff_t os; /* output stride */
|
andrew@0
|
105 };
|
andrew@0
|
106
|
andrew@0
|
107 /*
|
andrew@0
|
108 huge second-order macro that defines prototypes for all API
|
andrew@0
|
109 functions. We expand this macro for each supported precision
|
andrew@0
|
110
|
andrew@0
|
111 X: name-mangling macro
|
andrew@0
|
112 R: real data type
|
andrew@0
|
113 C: complex data type
|
andrew@0
|
114 */
|
andrew@0
|
115
|
andrew@0
|
116 #define FFTW_DEFINE_API(X, R, C) \
|
andrew@0
|
117 \
|
andrew@0
|
118 FFTW_DEFINE_COMPLEX(R, C); \
|
andrew@0
|
119 \
|
andrew@0
|
120 typedef struct X(plan_s) *X(plan); \
|
andrew@0
|
121 \
|
andrew@0
|
122 typedef struct fftw_iodim_do_not_use_me X(iodim); \
|
andrew@0
|
123 typedef struct fftw_iodim64_do_not_use_me X(iodim64); \
|
andrew@0
|
124 \
|
andrew@0
|
125 typedef enum fftw_r2r_kind_do_not_use_me X(r2r_kind); \
|
andrew@0
|
126 \
|
andrew@0
|
127 FFTW_EXTERN void X(execute)(const X(plan) p); \
|
andrew@0
|
128 \
|
andrew@0
|
129 FFTW_EXTERN X(plan) X(plan_dft)(int rank, const int *n, \
|
andrew@0
|
130 C *in, C *out, int sign, unsigned flags); \
|
andrew@0
|
131 \
|
andrew@0
|
132 FFTW_EXTERN X(plan) X(plan_dft_1d)(int n, C *in, C *out, int sign, \
|
andrew@0
|
133 unsigned flags); \
|
andrew@0
|
134 FFTW_EXTERN X(plan) X(plan_dft_2d)(int n0, int n1, \
|
andrew@0
|
135 C *in, C *out, int sign, unsigned flags); \
|
andrew@0
|
136 FFTW_EXTERN X(plan) X(plan_dft_3d)(int n0, int n1, int n2, \
|
andrew@0
|
137 C *in, C *out, int sign, unsigned flags); \
|
andrew@0
|
138 \
|
andrew@0
|
139 FFTW_EXTERN X(plan) X(plan_many_dft)(int rank, const int *n, \
|
andrew@0
|
140 int howmany, \
|
andrew@0
|
141 C *in, const int *inembed, \
|
andrew@0
|
142 int istride, int idist, \
|
andrew@0
|
143 C *out, const int *onembed, \
|
andrew@0
|
144 int ostride, int odist, \
|
andrew@0
|
145 int sign, unsigned flags); \
|
andrew@0
|
146 \
|
andrew@0
|
147 FFTW_EXTERN X(plan) X(plan_guru_dft)(int rank, const X(iodim) *dims, \
|
andrew@0
|
148 int howmany_rank, \
|
andrew@0
|
149 const X(iodim) *howmany_dims, \
|
andrew@0
|
150 C *in, C *out, \
|
andrew@0
|
151 int sign, unsigned flags); \
|
andrew@0
|
152 FFTW_EXTERN X(plan) X(plan_guru_split_dft)(int rank, const X(iodim) *dims, \
|
andrew@0
|
153 int howmany_rank, \
|
andrew@0
|
154 const X(iodim) *howmany_dims, \
|
andrew@0
|
155 R *ri, R *ii, R *ro, R *io, \
|
andrew@0
|
156 unsigned flags); \
|
andrew@0
|
157 \
|
andrew@0
|
158 FFTW_EXTERN X(plan) X(plan_guru64_dft)(int rank, \
|
andrew@0
|
159 const X(iodim64) *dims, \
|
andrew@0
|
160 int howmany_rank, \
|
andrew@0
|
161 const X(iodim64) *howmany_dims, \
|
andrew@0
|
162 C *in, C *out, \
|
andrew@0
|
163 int sign, unsigned flags); \
|
andrew@0
|
164 FFTW_EXTERN X(plan) X(plan_guru64_split_dft)(int rank, \
|
andrew@0
|
165 const X(iodim64) *dims, \
|
andrew@0
|
166 int howmany_rank, \
|
andrew@0
|
167 const X(iodim64) *howmany_dims, \
|
andrew@0
|
168 R *ri, R *ii, R *ro, R *io, \
|
andrew@0
|
169 unsigned flags); \
|
andrew@0
|
170 \
|
andrew@0
|
171 FFTW_EXTERN void X(execute_dft)(const X(plan) p, C *in, C *out); \
|
andrew@0
|
172 FFTW_EXTERN void X(execute_split_dft)(const X(plan) p, R *ri, R *ii, \
|
andrew@0
|
173 R *ro, R *io); \
|
andrew@0
|
174 \
|
andrew@0
|
175 FFTW_EXTERN X(plan) X(plan_many_dft_r2c)(int rank, const int *n, \
|
andrew@0
|
176 int howmany, \
|
andrew@0
|
177 R *in, const int *inembed, \
|
andrew@0
|
178 int istride, int idist, \
|
andrew@0
|
179 C *out, const int *onembed, \
|
andrew@0
|
180 int ostride, int odist, \
|
andrew@0
|
181 unsigned flags); \
|
andrew@0
|
182 \
|
andrew@0
|
183 FFTW_EXTERN X(plan) X(plan_dft_r2c)(int rank, const int *n, \
|
andrew@0
|
184 R *in, C *out, unsigned flags); \
|
andrew@0
|
185 \
|
andrew@0
|
186 FFTW_EXTERN X(plan) X(plan_dft_r2c_1d)(int n,R *in,C *out,unsigned flags); \
|
andrew@0
|
187 FFTW_EXTERN X(plan) X(plan_dft_r2c_2d)(int n0, int n1, \
|
andrew@0
|
188 R *in, C *out, unsigned flags); \
|
andrew@0
|
189 FFTW_EXTERN X(plan) X(plan_dft_r2c_3d)(int n0, int n1, \
|
andrew@0
|
190 int n2, \
|
andrew@0
|
191 R *in, C *out, unsigned flags); \
|
andrew@0
|
192 \
|
andrew@0
|
193 \
|
andrew@0
|
194 FFTW_EXTERN X(plan) X(plan_many_dft_c2r)(int rank, const int *n, \
|
andrew@0
|
195 int howmany, \
|
andrew@0
|
196 C *in, const int *inembed, \
|
andrew@0
|
197 int istride, int idist, \
|
andrew@0
|
198 R *out, const int *onembed, \
|
andrew@0
|
199 int ostride, int odist, \
|
andrew@0
|
200 unsigned flags); \
|
andrew@0
|
201 \
|
andrew@0
|
202 FFTW_EXTERN X(plan) X(plan_dft_c2r)(int rank, const int *n, \
|
andrew@0
|
203 C *in, R *out, unsigned flags); \
|
andrew@0
|
204 \
|
andrew@0
|
205 FFTW_EXTERN X(plan) X(plan_dft_c2r_1d)(int n,C *in,R *out,unsigned flags); \
|
andrew@0
|
206 FFTW_EXTERN X(plan) X(plan_dft_c2r_2d)(int n0, int n1, \
|
andrew@0
|
207 C *in, R *out, unsigned flags); \
|
andrew@0
|
208 FFTW_EXTERN X(plan) X(plan_dft_c2r_3d)(int n0, int n1, \
|
andrew@0
|
209 int n2, \
|
andrew@0
|
210 C *in, R *out, unsigned flags); \
|
andrew@0
|
211 \
|
andrew@0
|
212 FFTW_EXTERN X(plan) X(plan_guru_dft_r2c)(int rank, const X(iodim) *dims, \
|
andrew@0
|
213 int howmany_rank, \
|
andrew@0
|
214 const X(iodim) *howmany_dims, \
|
andrew@0
|
215 R *in, C *out, \
|
andrew@0
|
216 unsigned flags); \
|
andrew@0
|
217 FFTW_EXTERN X(plan) X(plan_guru_dft_c2r)(int rank, const X(iodim) *dims, \
|
andrew@0
|
218 int howmany_rank, \
|
andrew@0
|
219 const X(iodim) *howmany_dims, \
|
andrew@0
|
220 C *in, R *out, \
|
andrew@0
|
221 unsigned flags); \
|
andrew@0
|
222 \
|
andrew@0
|
223 FFTW_EXTERN X(plan) X(plan_guru_split_dft_r2c)( \
|
andrew@0
|
224 int rank, const X(iodim) *dims, \
|
andrew@0
|
225 int howmany_rank, \
|
andrew@0
|
226 const X(iodim) *howmany_dims, \
|
andrew@0
|
227 R *in, R *ro, R *io, \
|
andrew@0
|
228 unsigned flags); \
|
andrew@0
|
229 FFTW_EXTERN X(plan) X(plan_guru_split_dft_c2r)( \
|
andrew@0
|
230 int rank, const X(iodim) *dims, \
|
andrew@0
|
231 int howmany_rank, \
|
andrew@0
|
232 const X(iodim) *howmany_dims, \
|
andrew@0
|
233 R *ri, R *ii, R *out, \
|
andrew@0
|
234 unsigned flags); \
|
andrew@0
|
235 \
|
andrew@0
|
236 FFTW_EXTERN X(plan) X(plan_guru64_dft_r2c)(int rank, \
|
andrew@0
|
237 const X(iodim64) *dims, \
|
andrew@0
|
238 int howmany_rank, \
|
andrew@0
|
239 const X(iodim64) *howmany_dims, \
|
andrew@0
|
240 R *in, C *out, \
|
andrew@0
|
241 unsigned flags); \
|
andrew@0
|
242 FFTW_EXTERN X(plan) X(plan_guru64_dft_c2r)(int rank, \
|
andrew@0
|
243 const X(iodim64) *dims, \
|
andrew@0
|
244 int howmany_rank, \
|
andrew@0
|
245 const X(iodim64) *howmany_dims, \
|
andrew@0
|
246 C *in, R *out, \
|
andrew@0
|
247 unsigned flags); \
|
andrew@0
|
248 \
|
andrew@0
|
249 FFTW_EXTERN X(plan) X(plan_guru64_split_dft_r2c)( \
|
andrew@0
|
250 int rank, const X(iodim64) *dims, \
|
andrew@0
|
251 int howmany_rank, \
|
andrew@0
|
252 const X(iodim64) *howmany_dims, \
|
andrew@0
|
253 R *in, R *ro, R *io, \
|
andrew@0
|
254 unsigned flags); \
|
andrew@0
|
255 FFTW_EXTERN X(plan) X(plan_guru64_split_dft_c2r)( \
|
andrew@0
|
256 int rank, const X(iodim64) *dims, \
|
andrew@0
|
257 int howmany_rank, \
|
andrew@0
|
258 const X(iodim64) *howmany_dims, \
|
andrew@0
|
259 R *ri, R *ii, R *out, \
|
andrew@0
|
260 unsigned flags); \
|
andrew@0
|
261 \
|
andrew@0
|
262 FFTW_EXTERN void X(execute_dft_r2c)(const X(plan) p, R *in, C *out); \
|
andrew@0
|
263 FFTW_EXTERN void X(execute_dft_c2r)(const X(plan) p, C *in, R *out); \
|
andrew@0
|
264 \
|
andrew@0
|
265 FFTW_EXTERN void X(execute_split_dft_r2c)(const X(plan) p, \
|
andrew@0
|
266 R *in, R *ro, R *io); \
|
andrew@0
|
267 FFTW_EXTERN void X(execute_split_dft_c2r)(const X(plan) p, \
|
andrew@0
|
268 R *ri, R *ii, R *out); \
|
andrew@0
|
269 \
|
andrew@0
|
270 FFTW_EXTERN X(plan) X(plan_many_r2r)(int rank, const int *n, \
|
andrew@0
|
271 int howmany, \
|
andrew@0
|
272 R *in, const int *inembed, \
|
andrew@0
|
273 int istride, int idist, \
|
andrew@0
|
274 R *out, const int *onembed, \
|
andrew@0
|
275 int ostride, int odist, \
|
andrew@0
|
276 const X(r2r_kind) *kind, unsigned flags); \
|
andrew@0
|
277 \
|
andrew@0
|
278 FFTW_EXTERN X(plan) X(plan_r2r)(int rank, const int *n, R *in, R *out, \
|
andrew@0
|
279 const X(r2r_kind) *kind, unsigned flags); \
|
andrew@0
|
280 \
|
andrew@0
|
281 FFTW_EXTERN X(plan) X(plan_r2r_1d)(int n, R *in, R *out, \
|
andrew@0
|
282 X(r2r_kind) kind, unsigned flags); \
|
andrew@0
|
283 FFTW_EXTERN X(plan) X(plan_r2r_2d)(int n0, int n1, R *in, R *out, \
|
andrew@0
|
284 X(r2r_kind) kind0, X(r2r_kind) kind1, \
|
andrew@0
|
285 unsigned flags); \
|
andrew@0
|
286 FFTW_EXTERN X(plan) X(plan_r2r_3d)(int n0, int n1, int n2, \
|
andrew@0
|
287 R *in, R *out, X(r2r_kind) kind0, \
|
andrew@0
|
288 X(r2r_kind) kind1, X(r2r_kind) kind2, \
|
andrew@0
|
289 unsigned flags); \
|
andrew@0
|
290 \
|
andrew@0
|
291 FFTW_EXTERN X(plan) X(plan_guru_r2r)(int rank, const X(iodim) *dims, \
|
andrew@0
|
292 int howmany_rank, \
|
andrew@0
|
293 const X(iodim) *howmany_dims, \
|
andrew@0
|
294 R *in, R *out, \
|
andrew@0
|
295 const X(r2r_kind) *kind, unsigned flags); \
|
andrew@0
|
296 \
|
andrew@0
|
297 FFTW_EXTERN X(plan) X(plan_guru64_r2r)(int rank, const X(iodim64) *dims, \
|
andrew@0
|
298 int howmany_rank, \
|
andrew@0
|
299 const X(iodim64) *howmany_dims, \
|
andrew@0
|
300 R *in, R *out, \
|
andrew@0
|
301 const X(r2r_kind) *kind, unsigned flags); \
|
andrew@0
|
302 \
|
andrew@0
|
303 FFTW_EXTERN void X(execute_r2r)(const X(plan) p, R *in, R *out); \
|
andrew@0
|
304 \
|
andrew@0
|
305 FFTW_EXTERN void X(destroy_plan)(X(plan) p); \
|
andrew@0
|
306 FFTW_EXTERN void X(forget_wisdom)(void); \
|
andrew@0
|
307 FFTW_EXTERN void X(cleanup)(void); \
|
andrew@0
|
308 \
|
andrew@0
|
309 FFTW_EXTERN void X(set_timelimit)(double); \
|
andrew@0
|
310 \
|
andrew@0
|
311 FFTW_EXTERN void X(plan_with_nthreads)(int nthreads); \
|
andrew@0
|
312 FFTW_EXTERN int X(init_threads)(void); \
|
andrew@0
|
313 FFTW_EXTERN void X(cleanup_threads)(void); \
|
andrew@0
|
314 \
|
andrew@0
|
315 FFTW_EXTERN void X(export_wisdom_to_file)(FILE *output_file); \
|
andrew@0
|
316 FFTW_EXTERN char *X(export_wisdom_to_string)(void); \
|
andrew@0
|
317 FFTW_EXTERN void X(export_wisdom)(void (*write_char)(char c, void *), \
|
andrew@0
|
318 void *data); \
|
andrew@0
|
319 FFTW_EXTERN int X(import_system_wisdom)(void); \
|
andrew@0
|
320 FFTW_EXTERN int X(import_wisdom_from_file)(FILE *input_file); \
|
andrew@0
|
321 FFTW_EXTERN int X(import_wisdom_from_string)(const char *input_string); \
|
andrew@0
|
322 FFTW_EXTERN int X(import_wisdom)(int (*read_char)(void *), void *data); \
|
andrew@0
|
323 \
|
andrew@0
|
324 FFTW_EXTERN void X(fprint_plan)(const X(plan) p, FILE *output_file); \
|
andrew@0
|
325 FFTW_EXTERN void X(print_plan)(const X(plan) p); \
|
andrew@0
|
326 \
|
andrew@0
|
327 FFTW_EXTERN void *X(malloc)(size_t n); \
|
andrew@0
|
328 FFTW_EXTERN void X(free)(void *p); \
|
andrew@0
|
329 \
|
andrew@0
|
330 FFTW_EXTERN void X(flops)(const X(plan) p, \
|
andrew@0
|
331 double *add, double *mul, double *fmas); \
|
andrew@0
|
332 FFTW_EXTERN double X(estimate_cost)(const X(plan) p); \
|
andrew@0
|
333 \
|
andrew@0
|
334 FFTW_EXTERN const char X(version)[]; \
|
andrew@0
|
335 FFTW_EXTERN const char X(cc)[]; \
|
andrew@0
|
336 FFTW_EXTERN const char X(codelet_optim)[];
|
andrew@0
|
337
|
andrew@0
|
338
|
andrew@0
|
339 /* end of FFTW_DEFINE_API macro */
|
andrew@0
|
340
|
andrew@0
|
341 FFTW_DEFINE_API(FFTW_MANGLE_DOUBLE, double, fftw_complex)
|
andrew@0
|
342 FFTW_DEFINE_API(FFTW_MANGLE_FLOAT, float, fftwf_complex)
|
andrew@0
|
343 FFTW_DEFINE_API(FFTW_MANGLE_LONG_DOUBLE, long double, fftwl_complex)
|
andrew@0
|
344
|
andrew@0
|
345 #define FFTW_FORWARD (-1)
|
andrew@0
|
346 #define FFTW_BACKWARD (+1)
|
andrew@0
|
347
|
andrew@0
|
348 #define FFTW_NO_TIMELIMIT (-1.0)
|
andrew@0
|
349
|
andrew@0
|
350 /* documented flags */
|
andrew@0
|
351 #define FFTW_MEASURE (0U)
|
andrew@0
|
352 #define FFTW_DESTROY_INPUT (1U << 0)
|
andrew@0
|
353 #define FFTW_UNALIGNED (1U << 1)
|
andrew@0
|
354 #define FFTW_CONSERVE_MEMORY (1U << 2)
|
andrew@0
|
355 #define FFTW_EXHAUSTIVE (1U << 3) /* NO_EXHAUSTIVE is default */
|
andrew@0
|
356 #define FFTW_PRESERVE_INPUT (1U << 4) /* cancels FFTW_DESTROY_INPUT */
|
andrew@0
|
357 #define FFTW_PATIENT (1U << 5) /* IMPATIENT is default */
|
andrew@0
|
358 #define FFTW_ESTIMATE (1U << 6)
|
andrew@0
|
359
|
andrew@0
|
360 /* undocumented beyond-guru flags */
|
andrew@0
|
361 #define FFTW_ESTIMATE_PATIENT (1U << 7)
|
andrew@0
|
362 #define FFTW_BELIEVE_PCOST (1U << 8)
|
andrew@0
|
363 #define FFTW_NO_DFT_R2HC (1U << 9)
|
andrew@0
|
364 #define FFTW_NO_NONTHREADED (1U << 10)
|
andrew@0
|
365 #define FFTW_NO_BUFFERING (1U << 11)
|
andrew@0
|
366 #define FFTW_NO_INDIRECT_OP (1U << 12)
|
andrew@0
|
367 #define FFTW_ALLOW_LARGE_GENERIC (1U << 13) /* NO_LARGE_GENERIC is default */
|
andrew@0
|
368 #define FFTW_NO_RANK_SPLITS (1U << 14)
|
andrew@0
|
369 #define FFTW_NO_VRANK_SPLITS (1U << 15)
|
andrew@0
|
370 #define FFTW_NO_VRECURSE (1U << 16)
|
andrew@0
|
371 #define FFTW_NO_SIMD (1U << 17)
|
andrew@0
|
372 #define FFTW_NO_SLOW (1U << 18)
|
andrew@0
|
373 #define FFTW_NO_FIXED_RADIX_LARGE_N (1U << 19)
|
andrew@0
|
374 #define FFTW_ALLOW_PRUNING (1U << 20)
|
andrew@0
|
375 #define FFTW_WISDOM_ONLY (1U << 21)
|
andrew@0
|
376
|
andrew@0
|
377 #ifdef __cplusplus
|
andrew@0
|
378 } /* extern "C" */
|
andrew@0
|
379 #endif /* __cplusplus */
|
andrew@0
|
380
|
andrew@0
|
381 #endif /* FFTW3_H */
|