3 * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough
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 3 of the License, or (at
8 * your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
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.
20 #ifndef __GSL_FFT_REAL_H__
21 #define __GSL_FFT_REAL_H__
25 #include <gsl/gsl_math.h>
26 #include <gsl/gsl_complex.h>
27 #include <gsl/gsl_fft.h>
32 # define __BEGIN_DECLS extern "C" {
33 # define __END_DECLS }
35 # define __BEGIN_DECLS /* empty */
36 # define __END_DECLS /* empty */
41 int gsl_fft_real_radix2_transform (double data[], const size_t stride, const size_t n) ;
48 gsl_complex *twiddle[64];
51 gsl_fft_real_wavetable;
58 gsl_fft_real_workspace;
60 gsl_fft_real_wavetable * gsl_fft_real_wavetable_alloc (size_t n);
62 void gsl_fft_real_wavetable_free (gsl_fft_real_wavetable * wavetable);
64 gsl_fft_real_workspace * gsl_fft_real_workspace_alloc (size_t n);
66 void gsl_fft_real_workspace_free (gsl_fft_real_workspace * workspace);
69 int gsl_fft_real_transform (double data[], const size_t stride, const size_t n,
70 const gsl_fft_real_wavetable * wavetable,
71 gsl_fft_real_workspace * work);
74 int gsl_fft_real_unpack (const double real_coefficient[],
75 double complex_coefficient[],
76 const size_t stride, const size_t n);
80 #endif /* __GSL_FFT_REAL_H__ */