Comment out some more free() calls, which need to be turned on per-subsystem to weed...
[Math-GSL.git] / swig / FFT.i
blob3c5f7f22a251f8cdbac68523c26c78f34f45689a
1 %module "Math::GSL::FFT"
2 %include "typemaps.i"
3 %include "gsl_typemaps.i"
4 %include "gsl/gsl_math.h"
5 %include "gsl/gsl_sys.h"
6 %include "gsl/gsl_pow_int.h"
7 %include "gsl/gsl_nan.h"
8 %include "gsl/gsl_machine.h"
9 %include "gsl/gsl_complex.h"
10 %include "gsl/gsl_fft.h"
11 %include "gsl/gsl_fft_complex.h"
12 %include "gsl/gsl_fft_halfcomplex.h"
13 %include "gsl/gsl_fft_real.h"
14 %include "../pod/FFT.pod"
17 %typemap(argout) (double data[], const size_t stride, const size_t n) {
18 int i=0;
19 AV* tempav = newAV();
21 while( i < $3 ) {
22 av_push(tempav, newSVnv((double) $1[i]));
23 i++;
26 $result = sv_2mortal( newRV_noinc( (SV*) tempav) );
27 argvi++;
30 %typemap(argout) (gsl_complex_packed_array data[], const size_t stride, const size_t n) {
31 int i=0;
32 AV* tempav = newAV();
34 /* is this tested? */
35 while( i < 2*$3 ) {
36 av_push(tempav, newSVnv((double) $1[i]));
37 i++;
40 $result = sv_2mortal( newRV_noinc( (SV*) tempav) );
41 argvi++;
45 #include "gsl/gsl_complex.h"
46 #include "gsl/gsl_sys.h"
47 #include "gsl/gsl_pow_int.h"
48 #include "gsl/gsl_nan.h"
49 #include "gsl/gsl_machine.h"
50 #include "gsl/gsl_math.h"
51 #include "gsl/gsl_fft.h"
52 #include "gsl/gsl_fft_complex.h"
53 #include "gsl/gsl_fft_halfcomplex.h"
54 #include "gsl/gsl_fft_real.h"