comparison src/fftw-3.3.3/mpi/mpi-rdft.h @ 10:37bf6b4a2645

Add FFTW3
author Chris Cannam
date Wed, 20 Mar 2013 15:35:50 +0000
parents
children
comparison
equal deleted inserted replaced
9:c0fb53affa76 10:37bf6b4a2645
1 /*
2 * Copyright (c) 2003, 2007-11 Matteo Frigo
3 * Copyright (c) 2003, 2007-11 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 "ifftw-mpi.h"
22
23 /* problem.c: */
24 typedef struct {
25 problem super;
26 dtensor *sz;
27 INT vn; /* vector length (vector stride 1) */
28 R *I, *O; /* contiguous interleaved arrays */
29
30
31 unsigned flags; /* TRANSPOSED_IN/OUT meaningful for rnk>1 only
32 SCRAMBLED_IN/OUT meaningful for 1d transforms only */
33
34 MPI_Comm comm;
35
36 #if defined(STRUCT_HACK_KR)
37 rdft_kind kind[1];
38 #elif defined(STRUCT_HACK_C99)
39 rdft_kind kind[];
40 #else
41 rdft_kind *kind;
42 #endif
43 } problem_mpi_rdft;
44
45 problem *XM(mkproblem_rdft)(const dtensor *sz, INT vn,
46 R *I, R *O, MPI_Comm comm,
47 const rdft_kind *kind, unsigned flags);
48 problem *XM(mkproblem_rdft_d)(dtensor *sz, INT vn,
49 R *I, R *O, MPI_Comm comm,
50 const rdft_kind *kind, unsigned flags);
51
52 /* solve.c: */
53 void XM(rdft_solve)(const plan *ego_, const problem *p_);
54
55 /* plans have same operands as rdft plans, so just re-use */
56 typedef plan_rdft plan_mpi_rdft;
57 #define MKPLAN_MPI_RDFT(type, adt, apply) \
58 (type *)X(mkplan_rdft)(sizeof(type), adt, apply)
59
60 int XM(rdft_serial_applicable)(const problem_mpi_rdft *p);
61
62 /* various solvers */
63 void XM(rdft_rank_geq2_register)(planner *p);
64 void XM(rdft_rank_geq2_transposed_register)(planner *p);
65 void XM(rdft_serial_register)(planner *p);
66 void XM(rdft_rank1_bigvec_register)(planner *p);