diff options
-rw-r--r-- | INSTALL | 4 | ||||
-rw-r--r-- | THANKS (renamed from README) | 60 |
2 files changed, 9 insertions, 55 deletions
@@ -9,7 +9,7 @@ Recommended method (ok in Ubuntu/Debian systems): | |||
9 | $ cabal install hmatrix | 9 | $ cabal install hmatrix |
10 | 10 | ||
11 | Detailed installation instructions: | 11 | Detailed installation instructions: |
12 | http://www.hmatrix.googlepages.com/installation | 12 | http://code.haskell.org/hmatrix/install.html |
13 | 13 | ||
14 | INSTALLATION ON WINDOWS ---------------------------------------- | 14 | INSTALLATION ON WINDOWS ---------------------------------------- |
15 | 15 | ||
@@ -33,7 +33,7 @@ INSTALLATION ON WINDOWS ---------------------------------------- | |||
33 | 33 | ||
34 | 6) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage: | 34 | 6) Download and uncompress hmatrix-x.y.z.tar.gz from Hackage: |
35 | 35 | ||
36 | http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hmatrix | 36 | http://hackage.haskell.org/package/hmatrix |
37 | 37 | ||
38 | 7) Edit hmatrix.cabal: | 38 | 7) Edit hmatrix.cabal: |
39 | 39 | ||
@@ -1,55 +1,3 @@ | |||
1 | ----------------------------------------- | ||
2 | A simple scientific library for Haskell | ||
3 | ----------------------------------------- | ||
4 | |||
5 | INSTALLATION | ||
6 | |||
7 | See the INSTALL file. | ||
8 | |||
9 | TESTS --------------------------------------------- | ||
10 | |||
11 | $ ghci | ||
12 | Prelude> Numeric.LinearAlgebra.Tests.runTests 20 | ||
13 | |||
14 | EXAMPLES ------------------------------------------------------ | ||
15 | |||
16 | $ ghci | ||
17 | Prelude> :m + Numeric.GSL | ||
18 | Prelude Numeric.GSL> let quad = integrateQNG 1E-10 | ||
19 | Prelude Numeric.GSL> quad (^2) 0 1 | ||
20 | (0.3333333333333333,3.700743415417188e-15) | ||
21 | |||
22 | Prelude Numeric.GSL> :m + Numeric.LinearAlgebra | ||
23 | Prelude Numeric.LinearAlgebra> let m = (2><3)[1,2,3,4,5,6::Double] | ||
24 | Prelude Numeric.LinearAlgebra> let (u,d,v) = full svd m | ||
25 | Prelude Numeric.LinearAlgebra> d | ||
26 | (2><3) | ||
27 | [ 9.508032000695724, 0.0, 0.0 | ||
28 | , 0.0, 0.7728696356734838, 0.0 ] | ||
29 | Prelude Numeric.LinearAlgebra> u <> d <> trans v | ||
30 | (2><3) | ||
31 | [ 1.0000000000000004, 2.0, 3.0 | ||
32 | , 3.9999999999999996, 5.000000000000001, 6.0 ] | ||
33 | Prelude Numeric.GSL> :q | ||
34 | Leaving GHCi. | ||
35 | |||
36 | A number of illustrative programs are included in the examples folder. | ||
37 | |||
38 | KNOWN PROBLEMS / BUGS ------------------------------- | ||
39 | |||
40 | - On 64-bit machines the example "minimize.hs", when run from ghci, | ||
41 | produces a segmentation fault. It happens in the call to | ||
42 | gsl_multimin_fdfminimizer_alloc, inside the C wrapper. | ||
43 | If the program is called by runhaskell, it just terminates | ||
44 | prematurely, producing no results. Curiously, in compiled mode the | ||
45 | program seems to work perfectly well. | ||
46 | |||
47 | - On Ubuntu 6.06 LTS (Dapper) atlas3-sse2-dev (3.6.0-20) | ||
48 | produced segmentation faults when working with big matrices | ||
49 | on compiled programs. | ||
50 | |||
51 | ACKNOWLEDGEMENTS ----------------------------------------------------- | ||
52 | |||
53 | I thank Don Stewart, Henning Thielemann, Bulat Ziganshin, Heinrich Apfelmus, | 1 | I thank Don Stewart, Henning Thielemann, Bulat Ziganshin, Heinrich Apfelmus, |
54 | and all the people in the Haskell mailing lists for their help. | 2 | and all the people in the Haskell mailing lists for their help. |
55 | 3 | ||
@@ -109,4 +57,10 @@ and all the people in the Haskell mailing lists for their help. | |||
109 | 57 | ||
110 | - Jean-Francois Tremblay discovered an error in the tutorial. | 58 | - Jean-Francois Tremblay discovered an error in the tutorial. |
111 | 59 | ||
112 | - Heinrich Apfelmus fixed hmatrix.cabal for OS/X. | 60 | - Gilberto Camara contributed improved blas and lapack dlls for Windows. |
61 | |||
62 | - Heinrich Apfelmus fixed hmatrix.cabal for OS/X. He also tested the package | ||
63 | on PPC discovering a problem in zgesdd. | ||
64 | |||
65 | - Felipe Lessa tested the performance of GSL special function bindings | ||
66 | and contributed the cabal flag "safe-cheap". | ||