Mercurial > hg > sv-dependency-builds
comparison src/fftw-3.3.3/mpi/mpi-dft.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 int sign; /* FFTW_FORWARD / FFTW_BACKWARD */ | |
| 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 } problem_mpi_dft; | |
| 36 | |
| 37 problem *XM(mkproblem_dft)(const dtensor *sz, INT vn, | |
| 38 R *I, R *O, MPI_Comm comm, | |
| 39 int sign, unsigned flags); | |
| 40 problem *XM(mkproblem_dft_d)(dtensor *sz, INT vn, | |
| 41 R *I, R *O, MPI_Comm comm, | |
| 42 int sign, unsigned flags); | |
| 43 | |
| 44 /* solve.c: */ | |
| 45 void XM(dft_solve)(const plan *ego_, const problem *p_); | |
| 46 | |
| 47 /* plans have same operands as rdft plans, so just re-use */ | |
| 48 typedef plan_rdft plan_mpi_dft; | |
| 49 #define MKPLAN_MPI_DFT(type, adt, apply) \ | |
| 50 (type *)X(mkplan_rdft)(sizeof(type), adt, apply) | |
| 51 | |
| 52 int XM(dft_serial_applicable)(const problem_mpi_dft *p); | |
| 53 | |
| 54 /* various solvers */ | |
| 55 void XM(dft_rank_geq2_register)(planner *p); | |
| 56 void XM(dft_rank_geq2_transposed_register)(planner *p); | |
| 57 void XM(dft_serial_register)(planner *p); | |
| 58 void XM(dft_rank1_bigvec_register)(planner *p); | |
| 59 void XM(dft_rank1_register)(planner *p); | 
