summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README57
1 files changed, 47 insertions, 10 deletions
diff --git a/README b/README
index 73f5108..83ef943 100644
--- a/README
+++ b/README
@@ -3,10 +3,33 @@ A simple scientific library for Haskell
3 3
4REQUIREMENTS 4REQUIREMENTS
5 5
61) GNU Scientific Library (http://www.gnu.org/software/gsl) development packages 6Development packages of:
7 for your system (typically "gsl" and "gsl-devel").
8 7
92) ATLAS BLAS AND LAPACK (http://www.netlib.org/lapack). Usually included with GNU-Octave. 81) GNU Scientific Library (http://www.gnu.org/software/gsl)
9
102) BLAS and LAPACK (http://www.netlib.org/lapack)
11
123) ATLAS (recommended) (http://math-atlas.sourceforge.net/)
13
14For example, in Ubuntu Linux we need:
15
16- libgsl0-dev
17- refblas3-dev
18- lapack3-dev
19- atlas3-base-dev
20
21You can also install an atlas version specifically tuned
22for your machine (e.g., atlas3-sse2-dev, atlas3-3dnow-dev, etc.).
23However, do not install atlas3-sse2-dev on ubuntu 6.06 Dapper
24(see the TESTS section below).
25
26The following packages are used for simple graphics:
27
28- gnuplot
29- imagemagick
30
31It is also a good idea to install GNU-Octave to check
32that the results obtained by this library are correct...
10 33
11INSTALLATION 34INSTALLATION
12 35
@@ -17,16 +40,28 @@ $ runhaskell Setup.lhs install --user
17 40
18See below for installation on Windows. 41See below for installation on Windows.
19 42
20USING ATLAS 43TESTS
21 44
22$ ln -s /usr/lib/atlas/libblas.so.3.0 $HOME/lib/hssl-0.1/ghc-6.6.1/libcblas.so 45$ runhaskell examples/tests
23$ ln -s /usr/lib/atlas/liblapack.so.3.0 $HOME/lib/hssl-0.1/ghc-6.6.1/liblapack.so
24 46
25(More info in the tutorial, available from the web page of the project.) 47Additional tests with big matrices (taking a few minutes):
26 48
27TESTS 49$ runhaskell examples/tests --big
50
51NOTE: On Ubuntu 6.06 LTS (Dapper) atlas3-sse2-dev (3.6.0-20)
52produces segmentation faults when working with big matrices
53on compiled programs. To expose the problem:
54
55$ cd examples
56$ ghc --make -O tests.hs
57$ ./tests --big
28 58
29$ runhaskell examples/tests.hs 59If this crashes, just uninstall atlas3-sse2 (atlas3-base-dev will be used).
60Fortunately, atlas3-sse2-dev seems to work well on Ubuntu 7.10 Gutsy.
61
62A similar problem was reported at:
63
64http://article.gmane.org/gmane.linux.debian.devel.bugs.general/323065
30 65
31EXAMPLES 66EXAMPLES
32 67
@@ -75,7 +110,7 @@ There are only minor API changes:
75 110
76Old GSLHaskell code will work with small modifications. 111Old GSLHaskell code will work with small modifications.
77 112
78INSTALLATION ON WINDOWS 113INSTALLATION ON WINDOWS (FIXME)
79 114
801) Download the developer files gsl-1.8-lib.zip from 1151) Download the developer files gsl-1.8-lib.zip from
81 http://gnuwin32.sourceforge.net/packages/gsl.htm 116 http://gnuwin32.sourceforge.net/packages/gsl.htm
@@ -124,3 +159,5 @@ I thank Henning Thielemann and all the people in the Haskell mailing lists for t
124- Pedro E. López de Teruel fixed the interface to lapack. 159- Pedro E. López de Teruel fixed the interface to lapack.
125 160
126- Antti Siira discovered a bug in the plotting functions. 161- Antti Siira discovered a bug in the plotting functions.
162
163- Paulo Tanimoto helped to fix the configuration of the required libraries.