1 /* fft/gsl_fft_halfcomplex_float.h
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_HALFCOMPLEX_FLOAT_H__
21 #define __GSL_FFT_HALFCOMPLEX_FLOAT_H__
25 #include <gsl/gsl_math.h>
26 #include <gsl/gsl_complex.h>
27 #include <gsl/gsl_fft.h>
28 #include <gsl/gsl_fft_real_float.h>
33 # define __BEGIN_DECLS extern "C" {
34 # define __END_DECLS }
36 # define __BEGIN_DECLS /* empty */
37 # define __END_DECLS /* empty */
42 int gsl_fft_halfcomplex_float_radix2_backward (float data[], const size_t stride, const size_t n);
43 int gsl_fft_halfcomplex_float_radix2_inverse (float data[], const size_t stride, const size_t n);
44 int gsl_fft_halfcomplex_float_radix2_transform (float data[], const size_t stride, const size_t n);
51 gsl_complex_float *twiddle[64];
52 gsl_complex_float *trig;
54 gsl_fft_halfcomplex_wavetable_float;
57 gsl_fft_halfcomplex_wavetable_float * gsl_fft_halfcomplex_wavetable_float_alloc (size_t n);
60 gsl_fft_halfcomplex_wavetable_float_free (gsl_fft_halfcomplex_wavetable_float * wavetable);
62 int gsl_fft_halfcomplex_float_backward (float data[], const size_t stride, const size_t n,
63 const gsl_fft_halfcomplex_wavetable_float * wavetable,
64 gsl_fft_real_workspace_float * work);
66 int gsl_fft_halfcomplex_float_inverse (float data[], const size_t stride, const size_t n,
67 const gsl_fft_halfcomplex_wavetable_float * wavetable,
68 gsl_fft_real_workspace_float * work);
70 int gsl_fft_halfcomplex_float_transform (float data[], const size_t stride, const size_t n,
71 const gsl_fft_halfcomplex_wavetable_float * wavetable,
72 gsl_fft_real_workspace_float * work);
75 gsl_fft_halfcomplex_float_unpack (const float halfcomplex_coefficient[],
76 float complex_coefficient[],
77 const size_t stride, const size_t n);
80 gsl_fft_halfcomplex_float_radix2_unpack (const float halfcomplex_coefficient[],
81 float complex_coefficient[],
82 const size_t stride, const size_t n);
86 #endif /* __GSL_FFT_HALFCOMPLEX_FLOAT_H__ */