PyGSL

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

PyGSL Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Achim Gaedke and Pierre Schnizer
  • Publisher web site:

PyGSL Tags


PyGSL Description

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/pygslWhat's New in This Release:· Header solver.h fixed, which stopped compilation on the MAC.· Improved the detection of the array module to use


PyGSL Related Software