3 %typemap
(in
) double
* (double dvalue
) {
7 croak
("Math::GSL::Sort : $input is not a reference!\n");
10 if
((!SvNOK
(tempsv
)) && (!SvIOK(tempsv))) {
11 croak
("Math::GSL::Sort : $input is not a reference to number!\n");
13 dvalue
= SvNV
(tempsv
);
16 %typemap
(argout
) double
* {
18 tempsv
= SvRV
($input
);
19 sv_setnv
(tempsv
, *$
1);
23 #include
"/usr/local/include/gsl/gsl_nan.h"
24 #include
"/usr/local/include/gsl/gsl_poly.h"
25 #include
"/usr/local/include/gsl/gsl_complex.h"
28 %include
"/usr/local/include/gsl/gsl_nan.h"
29 %include
"/usr/local/include/gsl/gsl_poly.h"
30 %include
"/usr/local/include/gsl/gsl_complex.h"
35 @EXPORT_OK
= qw
(gsl_poly_eval gsl_poly_solve_quadratic
);
36 %EXPORT_TAGS
= ( all
=> [ @EXPORT_OK
] );