This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Gsl Perl Module
- To: gsl-discuss at sourceware dot cygnus dot com
- Subject: Gsl Perl Module
- From: Jonathan Leto <jonathan at leto dot net>
- Date: Thu, 12 Jul 2001 19:26:24 -0500
- Reply-To: jonathan at leto dot net
I attempted to write a Perl module to interface to GSL, but I came up
quite short. This was my first XS experience, and GSL is quite a large
library. Currently the module has a non-OO interface to the special
functions part of GSL. So you can do this:
use Gsl;
my $answer = Gsl::gsl_sf_gamma( $x );
But, I would like it to be something like:
use Gsl;
my $f = new Gsl::SpecialFunction;
my $answer = $f->gamma($x);
print "Answer is: " . $answer->val . "\n";
print "Err is: " . $answer->err . "\n";
I have put it up at http://leto.net/code/gsl/, and I would appreciate
any help or suggestions.
--
Jonathan Leto
jonathan@leto.net