[Perldl] cspline does not extrapolate?

InSuk Joung i.joung at gmail.com
Thu Feb 9 13:01:44 HST 2012


Hi,
I have a problem with PDL::GSL::INTERP.

use strict;
use warnings;
use PDL;
use PDL::GSL::INTERP;

my $x = sequence(10);
my $y = $x**2;

my $spl = PDL::GSL::INTERP->init( 'cspline', $x, $y );
print $spl->eval( -1, {Extrapolate=>1} ), "\n";


This code gives me this error:

gsl: interp.c:150: ERROR: interpolation error
Default GSL error handler invoked.
Aborted

PDL v2.4.6 + GSL v1.12 works but PDL v2.4.7_001 + GSL v1.15dfsg-1 does not.

-- 
Best,
InSuk Joung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.jach.hawaii.edu/pipermail/perldl/attachments/20120209/e04ed440/attachment.html>


More information about the Perldl mailing list