File indexing completed on 2025-02-21 10:03:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef __GSL_FFT_REAL_H__
0021 #define __GSL_FFT_REAL_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
0036 # define __END_DECLS
0037 #endif
0038
0039 __BEGIN_DECLS
0040
0041 int gsl_fft_real_radix2_transform (double 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 *twiddle[64];
0049 gsl_complex *trig;
0050 }
0051 gsl_fft_real_wavetable;
0052
0053 typedef struct
0054 {
0055 size_t n;
0056 double *scratch;
0057 }
0058 gsl_fft_real_workspace;
0059
0060 gsl_fft_real_wavetable * gsl_fft_real_wavetable_alloc (size_t n);
0061
0062 void gsl_fft_real_wavetable_free (gsl_fft_real_wavetable * wavetable);
0063
0064 gsl_fft_real_workspace * gsl_fft_real_workspace_alloc (size_t n);
0065
0066 void gsl_fft_real_workspace_free (gsl_fft_real_workspace * workspace);
0067
0068
0069 int gsl_fft_real_transform (double data[], const size_t stride, const size_t n,
0070 const gsl_fft_real_wavetable * wavetable,
0071 gsl_fft_real_workspace * work);
0072
0073
0074 int gsl_fft_real_unpack (const double real_coefficient[],
0075 double complex_coefficient[],
0076 const size_t stride, const size_t n);
0077
0078 __END_DECLS
0079
0080 #endif