Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:03:47

0001 /* fft/gsl_fft_real_float.h
0002  * 
0003  * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Brian Gough
0004  * 
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 3 of the License, or (at
0008  * your option) any later version.
0009  * 
0010  * This program is distributed in the hope that it will be useful, but
0011  * WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  * General Public License for more details.
0014  * 
0015  * You should have received a copy of the GNU General Public License
0016  * along with this program; if not, write to the Free Software
0017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0018  */
0019 
0020 #ifndef __GSL_FFT_REAL_FLOAT_H__
0021 #define __GSL_FFT_REAL_FLOAT_H__
0022 
0023 #include <stddef.h>
0024 
0025 #include <gsl/gsl_math.h>
0026 #include <gsl/gsl_complex.h>
0027 #include <gsl/gsl_fft.h>
0028 
0029 #undef __BEGIN_DECLS
0030 #undef __END_DECLS
0031 #ifdef __cplusplus
0032 # define __BEGIN_DECLS extern "C" {
0033 # define __END_DECLS }
0034 #else
0035 # define __BEGIN_DECLS /* empty */
0036 # define __END_DECLS /* empty */
0037 #endif
0038 
0039 __BEGIN_DECLS
0040 
0041 int gsl_fft_real_float_radix2_transform (float data[], const size_t stride, const size_t n) ;
0042 
0043 typedef struct
0044   {
0045     size_t n;
0046     size_t nf;
0047     size_t factor[64];
0048     gsl_complex_float *twiddle[64];
0049     gsl_complex_float *trig;
0050   }
0051 gsl_fft_real_wavetable_float;
0052 
0053 typedef struct
0054   {
0055     size_t n;
0056     float *scratch;
0057   }
0058 gsl_fft_real_workspace_float;
0059 
0060 gsl_fft_real_wavetable_float * gsl_fft_real_wavetable_float_alloc (size_t n);
0061 
0062 void  gsl_fft_real_wavetable_float_free (gsl_fft_real_wavetable_float * wavetable);
0063 
0064 gsl_fft_real_workspace_float * gsl_fft_real_workspace_float_alloc (size_t n);
0065 
0066 void  gsl_fft_real_workspace_float_free (gsl_fft_real_workspace_float * workspace);
0067 
0068 int gsl_fft_real_float_transform (float data[], const size_t stride, const size_t n,
0069                                   const gsl_fft_real_wavetable_float * wavetable,
0070                                   gsl_fft_real_workspace_float * work);
0071 
0072 
0073 int gsl_fft_real_float_unpack (const float real_float_coefficient[],
0074                                float complex_coefficient[],
0075                                const size_t stride, const size_t n);
0076 
0077 __END_DECLS
0078 
0079 #endif /* __GSL_FFT_REAL_FLOAT_H__ */