annotate fft/fftw/fftw-3.3.4/dft/dft.h @ 40:223f770b5341 kissfft-double tip

Try a double-precision kissfft
author Chris Cannam
date Wed, 07 Sep 2016 10:40:32 +0100
parents 26056e866c29
children
rev   line source
Chris@19 1 /*
Chris@19 2 * Copyright (c) 2003, 2007-14 Matteo Frigo
Chris@19 3 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
Chris@19 4 *
Chris@19 5 * This program is free software; you can redistribute it and/or modify
Chris@19 6 * it under the terms of the GNU General Public License as published by
Chris@19 7 * the Free Software Foundation; either version 2 of the License, or
Chris@19 8 * (at your option) any later version.
Chris@19 9 *
Chris@19 10 * This program is distributed in the hope that it will be useful,
Chris@19 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@19 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@19 13 * GNU General Public License for more details.
Chris@19 14 *
Chris@19 15 * You should have received a copy of the GNU General Public License
Chris@19 16 * along with this program; if not, write to the Free Software
Chris@19 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Chris@19 18 *
Chris@19 19 */
Chris@19 20
Chris@19 21
Chris@19 22 #ifndef __DFT_H__
Chris@19 23 #define __DFT_H__
Chris@19 24
Chris@19 25 #include "ifftw.h"
Chris@19 26 #include "codelet-dft.h"
Chris@19 27
Chris@19 28 #ifdef __cplusplus
Chris@19 29 extern "C"
Chris@19 30 {
Chris@19 31 #endif /* __cplusplus */
Chris@19 32
Chris@19 33 /* problem.c: */
Chris@19 34 typedef struct {
Chris@19 35 problem super;
Chris@19 36 tensor *sz, *vecsz;
Chris@19 37 R *ri, *ii, *ro, *io;
Chris@19 38 } problem_dft;
Chris@19 39
Chris@19 40 void X(dft_zerotens)(tensor *sz, R *ri, R *ii);
Chris@19 41 problem *X(mkproblem_dft)(const tensor *sz, const tensor *vecsz,
Chris@19 42 R *ri, R *ii, R *ro, R *io);
Chris@19 43 problem *X(mkproblem_dft_d)(tensor *sz, tensor *vecsz,
Chris@19 44 R *ri, R *ii, R *ro, R *io);
Chris@19 45
Chris@19 46 /* solve.c: */
Chris@19 47 void X(dft_solve)(const plan *ego_, const problem *p_);
Chris@19 48
Chris@19 49 /* plan.c: */
Chris@19 50 typedef void (*dftapply) (const plan *ego, R *ri, R *ii, R *ro, R *io);
Chris@19 51
Chris@19 52 typedef struct {
Chris@19 53 plan super;
Chris@19 54 dftapply apply;
Chris@19 55 } plan_dft;
Chris@19 56
Chris@19 57 plan *X(mkplan_dft)(size_t size, const plan_adt *adt, dftapply apply);
Chris@19 58
Chris@19 59 #define MKPLAN_DFT(type, adt, apply) \
Chris@19 60 (type *)X(mkplan_dft)(sizeof(type), adt, apply)
Chris@19 61
Chris@19 62 /* various solvers */
Chris@19 63 solver *X(mksolver_dft_direct)(kdft k, const kdft_desc *desc);
Chris@19 64 solver *X(mksolver_dft_directbuf)(kdft k, const kdft_desc *desc);
Chris@19 65
Chris@19 66 void X(dft_rank0_register)(planner *p);
Chris@19 67 void X(dft_rank_geq2_register)(planner *p);
Chris@19 68 void X(dft_indirect_register)(planner *p);
Chris@19 69 void X(dft_indirect_transpose_register)(planner *p);
Chris@19 70 void X(dft_vrank_geq1_register)(planner *p);
Chris@19 71 void X(dft_vrank2_transpose_register)(planner *p);
Chris@19 72 void X(dft_vrank3_transpose_register)(planner *p);
Chris@19 73 void X(dft_buffered_register)(planner *p);
Chris@19 74 void X(dft_generic_register)(planner *p);
Chris@19 75 void X(dft_rader_register)(planner *p);
Chris@19 76 void X(dft_bluestein_register)(planner *p);
Chris@19 77 void X(dft_nop_register)(planner *p);
Chris@19 78 void X(ct_generic_register)(planner *p);
Chris@19 79 void X(ct_genericbuf_register)(planner *p);
Chris@19 80
Chris@19 81 /* configurations */
Chris@19 82 void X(dft_conf_standard)(planner *p);
Chris@19 83
Chris@19 84 #ifdef __cplusplus
Chris@19 85 } /* extern "C" */
Chris@19 86 #endif /* __cplusplus */
Chris@19 87
Chris@19 88 #endif /* __DFT_H__ */