This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Gsl Perl Module


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 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]