PyGSL iconPyGSL 0.9.1

PyGSL provides a Python interface for the GNU scientific library (gsl).
PyGSL provides a Python interface for the GNU scientific library (gsl).

Requirements:

· Python
· GNUsl
· NumPy
· a ANSI C compiler (i.e. gcc)

Installation:

Uninstall the old version of pygsl gsl-config must be on your path

gzip -d -c pygsl-x.y.z.tar.gz|tar xvf-
cd pygsl-x.y.z
#do this with your prefered python version
#to set the gsl location explicitly use setup.py
--gsl-prefix=/path/to/gsl
#If your are using cvs, remove your build directory.
python setup.py build
# Running only
python setup.py
# can result in an error. So if you see an error runing setup.py
please run python setup.py build
# change to a id, that is allowed to do installation
python setup.py install

Ready....

Usage:

Do NOT test the interface in the distribution root directory! -- please install it first and then change to the tests directory and execute python run_test.py If you want to execute it in the distribution root directory, please run python setup.py build_ext -i first! It will put the requried binary files into the pygsl directory.

Just write in python

import pygsl.sf
print "%g+/-%g"%pygsl.sf.erf(1)

or

import pygsl.rng
rng=pygsl.rng.rng()
print rng.gaussian(1.0)

You may set the environment variable LD_LIBRARY_PATH to find the gsl shared object.

Uninstall:

rm -r "python install path"/lib/python"version"/site-packages/pygsl

What's New in This Release:

· Header solver.h fixed, which stopped compilation on the MAC.
· Improved the detection of the array module to use

last updated on:
February 21st, 2008, 13:57 GMT
price:
FREE!
developed by:
Achim Gaedke and Pierre Schnizer
license type:
GPL (GNU General Public License) 
category:
ROOT \ Science and Engineering \ Mathematics

FREE!

In a hurry? Add it to your Download Basket!

user rating 16

UNRATED
2.9/5
 

0/5

Add your review!

SUBMIT