Finish pod separation and add stub tests for remaining subsystems
[Math-GSL.git] / swig / FFT.i
blob47a0278c4dc231bee898eb7df5e9f0e17fafabad
1 %module "Math::GSL::FFT"
2 %include "typemaps.i"
3 %include "gsl_typemaps.i"
6 %typemap(argout) (double data[], const size_t stride, const size_t n) {
7 int i=0;
8 AV* tempav = newAV();
10 while( i < $3 ) {
11 av_push(tempav, newSVnv((double) $1[i]));
12 i++;
15 $result = sv_2mortal( newRV_noinc( (SV*) tempav) );
16 argvi++;
19 %typemap(argout) (gsl_complex_packed_array data[], const size_t stride, const size_t n) {
20 int i=0;
21 AV* tempav = newAV();
23 while( i < 2*$3 ) {
24 av_push(tempav, newSVnv((double) $1[i]));
25 i++;
28 $result = sv_2mortal( newRV_noinc( (SV*) tempav) );
29 argvi++;
33 #include "gsl/gsl_fft.h"
34 #include "gsl/gsl_fft_complex.h"
35 #include "gsl/gsl_fft_halfcomplex.h"
36 #include "gsl/gsl_fft_real.h"
37 #include "gsl/gsl_complex.h"
40 %include "gsl/gsl_complex.h"
41 %include "gsl/gsl_fft.h"
42 %include "gsl/gsl_fft_complex.h"
43 %include "gsl/gsl_fft_halfcomplex.h"
44 %include "gsl/gsl_fft_real.h"
45 %include "../pod/FFT.pod"