1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
/*
rb_gsl_fft.h
Ruby/GSL: Ruby extension library for GSL (GNU Scientific Library)
(C) Copyright 2001-2004 by Yoshiki Tsunesada
Ruby/GSL is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FFTNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef ___RB_GSL_FFT_H___
#define ___RB_GSL_FFT_H___
#include <gsl/gsl_fft.h>
#include <gsl/gsl_fft_complex.h>
#include <gsl/gsl_fft_real.h>
#include <gsl/gsl_fft_halfcomplex.h>
#include "rb_gsl.h"
typedef struct
{
size_t n;
size_t nf;
size_t factor[64];
gsl_complex *twiddle[64];
gsl_complex *trig;
} GSL_FFT_Wavetable;
typedef struct
{
size_t n;
double *scratch;
} GSL_FFT_Workspace;
enum {
RB_GSL_FFT_INPLACE,
RB_GSL_FFT_COPY,
};
extern VALUE mgsl_fft;
extern VALUE cgsl_fft_wavetable;
extern VALUE cgsl_fft_wavetable_factor;
extern VALUE cgsl_fft_complex_wavetable, cgsl_fft_complex_workspace;
extern VALUE cgsl_fft_real_wavetable, cgsl_fft_halfcomplex_wavetable;
extern VALUE cgsl_fft_real_workspace;
#endif
|