diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 47 |
1 files changed, 46 insertions, 1 deletions
@@ -46,7 +46,29 @@ Prelude Numeric.LinearAlgebra> u <> d <> trans v | |||
46 | Prelude Numeric.GSL> :q | 46 | Prelude Numeric.GSL> :q |
47 | Leaving GHCi. | 47 | Leaving GHCi. |
48 | 48 | ||
49 | -------------------------------------------------------------------------------------- | 49 | CHANGES |
50 | |||
51 | This is a new version of GSLHaskell. The package is (provisionally) | ||
52 | called \C{hssl} (a simple scientific library for Haskell) because only | ||
53 | a small part of GSL is available and linear algebra is based on LAPACK. | ||
54 | |||
55 | The code has been extensively refactored. There is a new internal representation | ||
56 | which admits both C and Fortran matrices and avoids many transposes. | ||
57 | |||
58 | There are only minor API changes: | ||
59 | |||
60 | - the matrix product operator \C{(<>)} is now overloaded only for matrix-matrix, | ||
61 | matrix-vector and vector-matrix, with the same base type. The dot product and the scaling | ||
62 | of vectors or matrices is now denoted by `dot` and `scale`. Conversions from real to | ||
63 | complex objects must be explicit. | ||
64 | |||
65 | - Most linear algebra functions admit both real and complex objects. Utilities such as | ||
66 | ident or constant are now polymorphic. | ||
67 | |||
68 | - Runtime errors produced by GSL or LAPACK can be handled using \C{Control.Exeception.catch}. | ||
69 | |||
70 | Old GSLHaskell code will work with small modifications. | ||
71 | |||
50 | ACKNOWLEDGEMENTS | 72 | ACKNOWLEDGEMENTS |
51 | 73 | ||
52 | I thank Henning Thielemann and all the people in the Haskell mailing lists for their help. | 74 | I thank Henning Thielemann and all the people in the Haskell mailing lists for their help. |
@@ -63,3 +85,26 @@ I thank Henning Thielemann and all the people in the Haskell mailing lists for t | |||
63 | - Pedro E. López de Teruel fixed the interface to lapack. | 85 | - Pedro E. López de Teruel fixed the interface to lapack. |
64 | 86 | ||
65 | - Antti Siira discovered a bug in the plotting functions. | 87 | - Antti Siira discovered a bug in the plotting functions. |
88 | |||
89 | INSTALLATION ON WINDOWS | ||
90 | |||
91 | 1) Download the developer files gsl-1.8-lib.zip from | ||
92 | http://gnuwin32.sourceforge.net/packages/gsl.htm | ||
93 | and copy the gsl folder (under include) to the include folder of ghc: | ||
94 | C:\ghc\ghc.6.6.1\include | ||
95 | |||
96 | 2) Install the package as usual from the command line in the hssl-0.1 folder: | ||
97 | runhaskell Setup.lhs configure | ||
98 | runhaskell Setup.lhs build | ||
99 | runhaskell Setup.lhs install | ||
100 | |||
101 | 3) Copy libgsl.dll, libcblas.dll (from the binaries package gsl-1.8.bin.zip) | ||
102 | and liblapack.dll (borrowed from the R system) to the folder where | ||
103 | hssl has been installed: C:\haskell\hss-0.1\ghc-6.6.1. They are needed to compile programs. | ||
104 | These three dlls are also available from http://perception.inf.um.es/darcs/HSSL/dll1.zip | ||
105 | |||
106 | 4) Copy the dlls at http://perception.inf.um.es/darcs/HSSL/dll2.zip to C:\windows\system | ||
107 | They are required to run the programs and ghci. | ||
108 | |||
109 | Unfortunately the lapack dll supplied by the R system does not include zgels_ and zgelss_, | ||
110 | so the functions depending on them will produced a "non supported" runtime error. | ||