Merge branch 'master' of http://leto.net/code/Math-GSL
[Math-GSL.git] / Complex.i
blob04bee8bdd8861a17e1dd729c961a8a816c0eb9d1
1 %module Complex
2 %{
3 #include "/usr/local/include/gsl/gsl_complex.h"
4 #include "/usr/local/include/gsl/gsl_complex_math.h"
5 %}
7 %include "/usr/local/include/gsl/gsl_complex.h"
8 %include "/usr/local/include/gsl/gsl_complex_math.h"
11 %include "carrays.i"
12 %array_functions(double, doubleArray);
14 double gsl_poly_eval(double c[], int len, double x);
16 /* r= real+i*imag */
17 gsl_complex gsl_complex_rect (double x, double y);
19 /* r= r e^(i theta) */
20 gsl_complex gsl_complex_polar (double r, double theta);
22 %perlcode %{
24 @EXPORT_OK = qw(gsl_complex_rect gsl_complex_polar);