3 our $GSL_VERSION
= '
1.11'
;
7 %typemap
(in
) double const
[] {
13 croak
("Math::GSL : $input is not a reference!");
14 if
(SvTYPE
(SvRV
($input
)) != SVt_PVAV
)
15 croak
("Math::GSL : $input is not an array ref!");
17 tempav
= (AV
*)SvRV
($input
);
19 $
1 = (double
*) malloc
((len
+1)*sizeof
(double
));
20 for
(i
= 0; i
<= len
; i
++) {
21 tv
= av_fetch
(tempav
, i
, 0);
22 $
1[i
] = (double
) SvNV
(*tv
);
25 %apply double const
[] { double
*data
};
26 %apply double const
[] { double x
[] };
28 %typemap
(freearg
) double const
[] {
33 %typemap
(argout
) double const
[] {
34 printf
("argout double const\n");