import ruby-gsl-0.1.9

This is a port of the GNU Scientific Library to the Ruby programming language.

Things from GSL you can use in ruby-gsl:
- some error handling (ch. 3 in the GSL documentation)
- basic mathematical functions (ch. 4)
- complex numbers (ch. 5)
- functions for polynomial evaluation/roots (ch. 6)
- most "special functions" (ch. 7)
- vectors and matrices (ch. 8)
- permutations (ch. 9)
- combinations (ch. 10)
- BLAS support (ch. 12)
- linear algebra (ch. 13)
- eigensystems (ch. 14)
- numerical integration (ch. 16)
- random number generation (ch. 17)
- quasi-random sequences (ch. 18)
- most random number distributions (ch. 19)
- most statistical functions (ch. 20)
- histograms (ch. 21)
- Monte Carlo integration (ch. 23)
- Simulated Annealing (not reliable) (ch. 24)
- interpolation (ch. 26)
- numerical differentiation (ch. 27)
- Chebyshev approximation (ch. 28)
- series acceleration (ch. 29)
- Discrete Hankel Transforms (ch. 30)
- 1-dimensional root-finding (ch. 31)
- 1-dimensional minimization (ch. 32)
- some functions for least-squares fitting (ch. 35)
- physical constants (ch. 37)
This commit is contained in:
dmcmahill 2003-09-15 00:18:31 +00:00
parent 811defebab
commit 126241da2b
4 changed files with 123 additions and 0 deletions

31
math/ruby-gsl/DESCR Normal file
View file

@ -0,0 +1,31 @@
This is a port of the GNU Scientific Library to the Ruby programming language.
Things from GSL you can use in ruby-gsl:
- some error handling (ch. 3 in the GSL documentation)
- basic mathematical functions (ch. 4)
- complex numbers (ch. 5)
- functions for polynomial evaluation/roots (ch. 6)
- most "special functions" (ch. 7)
- vectors and matrices (ch. 8)
- permutations (ch. 9)
- combinations (ch. 10)
- BLAS support (ch. 12)
- linear algebra (ch. 13)
- eigensystems (ch. 14)
- numerical integration (ch. 16)
- random number generation (ch. 17)
- quasi-random sequences (ch. 18)
- most random number distributions (ch. 19)
- most statistical functions (ch. 20)
- histograms (ch. 21)
- Monte Carlo integration (ch. 23)
- Simulated Annealing (not reliable) (ch. 24)
- interpolation (ch. 26)
- numerical differentiation (ch. 27)
- Chebyshev approximation (ch. 28)
- series acceleration (ch. 29)
- Discrete Hankel Transforms (ch. 30)
- 1-dimensional root-finding (ch. 31)
- 1-dimensional minimization (ch. 32)
- some functions for least-squares fitting (ch. 35)
- physical constants (ch. 37)

42
math/ruby-gsl/Makefile Normal file
View file

@ -0,0 +1,42 @@
# $NetBSD: Makefile,v 1.1.1.1 2003/09/15 00:18:31 dmcmahill Exp $
DISTNAME= ruby-gsl-0.1.9
WRKSRC= ${WRKDIR}/${DISTNAME}/ext
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ruby-gsl/}
MAINTAINER= dmcmahill@NetBSD.org
HOMEPAGE= http://ruby-gsl.sourceforge.net/
COMMENT= Wrapper of the GNU Scientific Library (GSL) for Ruby
DIST_SUBDIR= ruby
USE_RUBY_EXTCONF= yes
USE_BUILDLINK2= yes
INSTALL_TARGET= site-install
DOCS= README
post-patch:
${MV} ${WRKSRC}/Const.c ${WRKSRC}/Const.c.bak
${SED} -e 's;CONST_MKS_;CONST_MKSA_;g' -e 's;CONST_CGS_;CONST_CGSM_;g' \
${WRKSRC}/Const.c.bak > ${WRKSRC}/Const.c
DOCS= \
HOWTO \
IMPLEMENTED \
README \
TODO \
doc.rd
post-install:
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/gsl
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/../doc/${f} ${RUBY_DOCDIR}/gsl
.endfor
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/gsl
${INSTALL_DATA} ${WRKSRC}/../samples/*.rb ${RUBY_EXAMPLESDIR}/gsl
.include "../../lang/ruby-base/Makefile.common"
.include "../../lang/ruby-base/buildlink2.mk"
.include "../../math/gsl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"

46
math/ruby-gsl/PLIST Normal file
View file

@ -0,0 +1,46 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/15 00:18:31 dmcmahill Exp $
${RUBY_SITEARCHLIBDIR}/GSL.so
${RUBY_DOCDIR}/gsl/HOWTO
${RUBY_DOCDIR}/gsl/IMPLEMENTED
${RUBY_DOCDIR}/gsl/README
${RUBY_DOCDIR}/gsl/TODO
${RUBY_DOCDIR}/gsl/doc.rd
${RUBY_EXAMPLESDIR}/gsl/array.rb
${RUBY_EXAMPLESDIR}/gsl/blas.rb
${RUBY_EXAMPLESDIR}/gsl/cheb.rb
${RUBY_EXAMPLESDIR}/gsl/comb.rb
${RUBY_EXAMPLESDIR}/gsl/complex.rb
${RUBY_EXAMPLESDIR}/gsl/const.rb
${RUBY_EXAMPLESDIR}/gsl/diff.rb
${RUBY_EXAMPLESDIR}/gsl/eigen.rb
${RUBY_EXAMPLESDIR}/gsl/error.rb
${RUBY_EXAMPLESDIR}/gsl/fit.rb
${RUBY_EXAMPLESDIR}/gsl/func.rb
${RUBY_EXAMPLESDIR}/gsl/hist.rb
${RUBY_EXAMPLESDIR}/gsl/hist2d.rb
${RUBY_EXAMPLESDIR}/gsl/integration.rb
${RUBY_EXAMPLESDIR}/gsl/interp.rb
${RUBY_EXAMPLESDIR}/gsl/linalg.rb
${RUBY_EXAMPLESDIR}/gsl/linalg_complex.rb
${RUBY_EXAMPLESDIR}/gsl/matrix.rb
${RUBY_EXAMPLESDIR}/gsl/matrix_complex.rb
${RUBY_EXAMPLESDIR}/gsl/min.rb
${RUBY_EXAMPLESDIR}/gsl/monte.rb
${RUBY_EXAMPLESDIR}/gsl/multi.rb
${RUBY_EXAMPLESDIR}/gsl/perm.rb
${RUBY_EXAMPLESDIR}/gsl/poly.rb
${RUBY_EXAMPLESDIR}/gsl/qrng.rb
${RUBY_EXAMPLESDIR}/gsl/rnd.rb
${RUBY_EXAMPLESDIR}/gsl/rnd2.rb
${RUBY_EXAMPLESDIR}/gsl/rnd3.rb
${RUBY_EXAMPLESDIR}/gsl/rng.rb
${RUBY_EXAMPLESDIR}/gsl/shuffle.rb
${RUBY_EXAMPLESDIR}/gsl/siman.rb
${RUBY_EXAMPLESDIR}/gsl/solve.rb
${RUBY_EXAMPLESDIR}/gsl/special.rb
${RUBY_EXAMPLESDIR}/gsl/spline.rb
${RUBY_EXAMPLESDIR}/gsl/stats.rb
${RUBY_EXAMPLESDIR}/gsl/sum.rb
${RUBY_EXAMPLESDIR}/gsl/vector.rb
@dirrm ${RUBY_DOCDIR}/gsl
@dirrm ${RUBY_EXAMPLESDIR}/gsl

4
math/ruby-gsl/distinfo Normal file
View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2003/09/15 00:18:31 dmcmahill Exp $
SHA1 (ruby/ruby-gsl-0.1.9.tar.gz) = f72834aa70446712b0ae8571796ad1ae16443db0
Size (ruby/ruby-gsl-0.1.9.tar.gz) = 142951 bytes