Mercurial > hg > sv-dependency-builds
comparison src/fftw-3.3.5/dft/ct.h @ 127:7867fa7e1b6b
Current fftw source
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 13:40:26 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
126:4a7071416412 | 127:7867fa7e1b6b |
---|---|
1 /* | |
2 * Copyright (c) 2003, 2007-14 Matteo Frigo | |
3 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology | |
4 * | |
5 * This program is free software; you can redistribute it and/or modify | |
6 * it under the terms of the GNU General Public License as published by | |
7 * the Free Software Foundation; either version 2 of the License, or | |
8 * (at your option) any later version. | |
9 * | |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU General Public License | |
16 * along with this program; if not, write to the Free Software | |
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
18 * | |
19 */ | |
20 | |
21 #include "dft.h" | |
22 | |
23 typedef void (*dftwapply)(const plan *ego, R *rio, R *iio); | |
24 typedef struct ct_solver_s ct_solver; | |
25 typedef plan *(*ct_mkinferior)(const ct_solver *ego, | |
26 INT r, INT irs, INT ors, | |
27 INT m, INT ms, | |
28 INT v, INT ivs, INT ovs, | |
29 INT mstart, INT mcount, | |
30 R *rio, R *iio, planner *plnr); | |
31 typedef int (*ct_force_vrecursion)(const ct_solver *ego, | |
32 const problem_dft *p); | |
33 | |
34 typedef struct { | |
35 plan super; | |
36 dftwapply apply; | |
37 } plan_dftw; | |
38 | |
39 extern plan *X(mkplan_dftw)(size_t size, const plan_adt *adt, dftwapply apply); | |
40 | |
41 #define MKPLAN_DFTW(type, adt, apply) \ | |
42 (type *)X(mkplan_dftw)(sizeof(type), adt, apply) | |
43 | |
44 struct ct_solver_s { | |
45 solver super; | |
46 INT r; | |
47 int dec; | |
48 # define DECDIF 0 | |
49 # define DECDIT 1 | |
50 # define TRANSPOSE 2 | |
51 ct_mkinferior mkcldw; | |
52 ct_force_vrecursion force_vrecursionp; | |
53 }; | |
54 | |
55 int X(ct_applicable)(const ct_solver *, const problem *, planner *); | |
56 ct_solver *X(mksolver_ct)(size_t size, INT r, int dec, | |
57 ct_mkinferior mkcldw, | |
58 ct_force_vrecursion force_vrecursionp); | |
59 extern ct_solver *(*X(mksolver_ct_hook))(size_t, INT, int, | |
60 ct_mkinferior, ct_force_vrecursion); | |
61 | |
62 void X(regsolver_ct_directw)(planner *plnr, | |
63 kdftw codelet, const ct_desc *desc, int dec); | |
64 void X(regsolver_ct_directwbuf)(planner *plnr, | |
65 kdftw codelet, const ct_desc *desc, int dec); | |
66 solver *X(mksolver_ctsq)(kdftwsq codelet, const ct_desc *desc, int dec); | |
67 void X(regsolver_ct_directwsq)(planner *plnr, kdftwsq codelet, | |
68 const ct_desc *desc, int dec); |