I have 2 machines on different versions of PDL and GSL.
Both are pre-packed Ubuntu versions.
The older one supports PDL::GSL::INTERP with {Extrapolate => 1}
The somewhat newer one doesn't. Is this known behavior ?

I modified the example code to ask for an extrapolated version.

===code

   use PDL;
   use PDL::GSL::INTERP;

   my $x = sequence(10);
   my $y = exp($x);

   my $spl = PDL::GSL::INTERP->init('cspline',$x,$y);

   my $res = $spl->eval(14.35,{Extrapolate => 1});
print $res."\n";

=== result1

PDL v2.4.5 (supports bad values)

-81198.810683691


=== result2


PDL v2.4.7_001 (supports bad values)

./tstipol.pl
gsl: interp.c:150: ERROR: interpolation error
Default GSL error handler invoked.
Aborted (core dumped)

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to