public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* Gsl Perl Module
@ 2001-12-19 13:20 Jonathan Leto
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Leto @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

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 


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Gsl Perl Module
@ 2001-12-19 13:20 Dirk Eddelbuettel
  2001-12-19 13:20 ` Jonathan Leto
  2001-12-19 13:20 ` Jarle Brinchmann
  0 siblings, 2 replies; 4+ messages in thread
From: Dirk Eddelbuettel @ 2001-12-19 13:20 UTC (permalink / raw)
  To: jonathan, gsl-discuss

> 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

There is/was a Perl Data Language (PDL) interface to GSL. AFAICR it
focussed on the probability distributions. Try a search for PDL::GSL, 
maybe you can re-use some of that code.

Dirk

-- 
According to the latest figures, 43% of all signatures are totally worthless.   

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 Gsl Perl Module Jonathan Leto
  -- strict thread matches above, loose matches on Subject: below --
2001-12-19 13:20 Dirk Eddelbuettel
2001-12-19 13:20 ` Jonathan Leto
2001-12-19 13:20 ` Jarle Brinchmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).