* Re: Math::Gsl 0.06
2001-12-19 13:20 Math::Gsl 0.06 Jonathan Leto
@ 2001-12-19 13:20 ` Brian Gough
[not found] ` <20011109165905.A19324@leto.net>
0 siblings, 1 reply; 3+ messages in thread
From: Brian Gough @ 2001-12-19 13:20 UTC (permalink / raw)
To: jonathan; +Cc: gsl-discuss
Jonathan Leto writes:
> The new version of the perl API to Gsl has been accepted by CPAN into the
> Math::Gsl namespace. To install:
Hi, I had a problem compiling it with perl 5.004_04 -- does it require
a newer version of perl? I think I may have asked this before but
can't remember specifically what the answer was.
bjg|debian> perl Makefile.PL
Writing Makefile for Math::Gsl::Sf
Writing Makefile for Math::Gsl
bjg|debian> make
make[1]: Entering directory `/home/bjg/Math-Gsl-0.06/Sf'
/usr/local/bin/perl -I/usr/lib/perl5/i386-linux/5.004 -I/usr/lib/perl5 /usr/lib/
perl5/ExtUtils/xsubpp -typemap /usr/lib/perl5/ExtUtils/typemap -typemap typemap
Sf.xs >Sf.tc && mv Sf.tc Sf.c
Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 13
84
Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 13
89
Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 13
93
Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 13
98
Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 14
02
Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 14
07
Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 14
11
Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 14
16
make[1]: *** [Sf.c] Error 1
make[1]: Leaving directory `/home/bjg/Math-Gsl-0.06/Sf'
make: *** [subdirs] Error 2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Math::Gsl 0.06
[not found] ` <15340.23691.852804.640357@debian>
@ 2001-12-19 13:20 ` Brian Gough
0 siblings, 0 replies; 3+ messages in thread
From: Brian Gough @ 2001-12-19 13:20 UTC (permalink / raw)
To: jonathan; +Cc: gsl-discuss
Brian Gough (bjg@network-theory.co.uk) was saying:
> Error: No INPUT definition for type 'const unsigned int' found in Sf.xs, line 13
I was able to get it to compile on my old version of perl by changing
T_UV to T_IV in the typemaps. Apparently there was no entry for T_UV
in the standard perl typemap for 5.004. The definition for T_UV in
later versions seems to be the same as for T_IV however --- they both
silently convert negative values into unsigned values. Maybe it would
be worthwhile to provide a custom typemap entry that gives an error
when a negative value is used for an unsigned argument.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Math::Gsl 0.06
@ 2001-12-19 13:20 Jonathan Leto
2001-12-19 13:20 ` Brian Gough
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Leto @ 2001-12-19 13:20 UTC (permalink / raw)
To: gsl-discuss
The new version of the perl API to Gsl has been accepted by CPAN into the
Math::Gsl namespace. To install:
perl -MCPAN -e "install Math::Gsl"
To view online documentation: http://leto.net/code/gsl/
There is a totally new API, which allows you to do all of the following:
use Math::Gsl::Sf qw(:Gamma);
my $sf = new Math::Gsl::Sf;
my $r = new Math::Gsl::Sf::Result;
print "1: Gamma(5): " . Math::Gsl::Sf::gamma( 5 ) . "\n";
print "2: Gamma(5): " . $sf->gamma(5) . "\n";
print "3: Gamma(5): " . gamma(5) . "\n";
print "4: Gamma(5): " . Math::Gsl::Sf::sf_gamma(5) . "\n";
my $status = $sf->gamma_e( 5 , $r );
print "5: Gamma(5): " . $r->val . ",". $r->err ." $status \n";
Let me know what you think.
--
jonathan@leto.net
"Wir mussen wissen. Wir werden wissen."
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-19 13:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 Math::Gsl 0.06 Jonathan Leto
2001-12-19 13:20 ` Brian Gough
[not found] ` <20011109165905.A19324@leto.net>
[not found] ` <15340.23691.852804.640357@debian>
2001-12-19 13:20 ` Brian Gough
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).