diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-11-23 09:29:50 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-11-23 09:29:50 +0000 |
commit | 48139eb50c9052406839ee8375e378374e973207 (patch) | |
tree | 5c84c9494115393a9cf7b4cead8e23a5ffcc4a9a /README | |
parent | e685015b98c8ca272e37376b50b3b17afe747529 (diff) |
improved hssl.cabal
Diffstat (limited to 'README')
-rw-r--r-- | README | 28 |
1 files changed, 17 insertions, 11 deletions
@@ -26,8 +26,8 @@ The following packages are used for simple graphics: | |||
26 | - gnuplot | 26 | - gnuplot |
27 | - imagemagick | 27 | - imagemagick |
28 | 28 | ||
29 | It is also a good idea to install GNU-Octave to check | 29 | GNU-Octave can be used to check if the results |
30 | that the results obtained by this library are correct... | 30 | obtained by this library are correct. |
31 | 31 | ||
32 | INSTALLATION | 32 | INSTALLATION |
33 | 33 | ||
@@ -83,7 +83,7 @@ Prelude Numeric.LinearAlgebra> u <> d <> trans v | |||
83 | Prelude Numeric.GSL> :q | 83 | Prelude Numeric.GSL> :q |
84 | Leaving GHCi. | 84 | Leaving GHCi. |
85 | 85 | ||
86 | A few illustrative programs are included in the examples folder. | 86 | A number of illustrative programs are included in the examples folder. |
87 | 87 | ||
88 | CHANGES | 88 | CHANGES |
89 | 89 | ||
@@ -113,25 +113,31 @@ INSTALLATION ON WINDOWS | |||
113 | 1) Download the developer files gsl-1.8-lib.zip from | 113 | 1) Download the developer files gsl-1.8-lib.zip from |
114 | http://gnuwin32.sourceforge.net/packages/gsl.htm | 114 | http://gnuwin32.sourceforge.net/packages/gsl.htm |
115 | and copy the gsl folder (under include) to the include folder of ghc: | 115 | and copy the gsl folder (under include) to the include folder of ghc: |
116 | C:\ghc\ghc.6.6.1\include | 116 | C:\ghc\ghc.6.x.1\include |
117 | 117 | ||
118 | 2) Install the package as usual from the command line in the hssl-0.1 folder: | 118 | 2) Install the package as usual from the command line in the hssl-0.1 folder: |
119 | runhaskell Setup.lhs configure | 119 | runhaskell Setup.lhs configure |
120 | runhaskell Setup.lhs build | 120 | runhaskell Setup.lhs build |
121 | runhaskell Setup.lhs install | 121 | runhaskell Setup.lhs install |
122 | 122 | ||
123 | 2.5) If configure cannot find ld please see: | ||
124 | http://article.gmane.org/gmane.comp.lang.haskell.cafe/32025 | ||
125 | |||
123 | 3) Copy libgsl.dll, libcblas.dll (from the binaries package gsl-1.8.bin.zip) | 126 | 3) Copy libgsl.dll, libcblas.dll (from the binaries package gsl-1.8.bin.zip) |
124 | and liblapack.dll (borrowed from the R system) to the folder where | 127 | and liblapack.dll (borrowed from the R system) to the folder in which |
125 | hssl has been installed: C:\Program Files\haskell\hss-0.1\ghc-6.6.1. | 128 | hssl has been installed: C:\Program Files\haskell\hss-0.1\ghc-6.x.1. |
126 | Rename libcblas.dll to libblas.dll. | 129 | Rename libcblas.dll to libblas.dll. |
127 | They are needed to compile programs. | 130 | They are needed to compile programs. |
128 | These three dlls are also available from | 131 | These three dlls are available from: |
129 | http://perception.inf.um.es/~aruiz/darcs/HSSL/dll1.zip | 132 | http://perception.inf.um.es/~aruiz/darcs/HSSL/dll1.zip |
130 | 133 | ||
131 | 4) Copy the dlls at http://perception.inf.um.es/~aruiz/darcs/HSSL/dll2.zip | 134 | 4) Copy the dlls available from: |
135 | http://perception.inf.um.es/~aruiz/darcs/HSSL/dll2.zip | ||
132 | to the working directory or C:\windows\system | 136 | to the working directory or C:\windows\system |
133 | They are required to run the programs and ghci. | 137 | They are required to run the programs and ghci. |
134 | 138 | ||
139 | 5) run the tests | ||
140 | |||
135 | Unfortunately the lapack dll supplied by the R system does not include | 141 | Unfortunately the lapack dll supplied by the R system does not include |
136 | zgels_, zgelss_, and zgees_, so the functions depending on them | 142 | zgels_, zgelss_, and zgees_, so the functions depending on them |
137 | (linearSolveLS, linearSolveSVD, and schur for complex data) | 143 | (linearSolveLS, linearSolveSVD, and schur for complex data) |
@@ -140,9 +146,9 @@ will produce a "non supported in this OS" runtime error. | |||
140 | If you find an alternative free and complete lapack.dll which works well | 146 | If you find an alternative free and complete lapack.dll which works well |
141 | for this system please let me know. | 147 | for this system please let me know. |
142 | 148 | ||
143 | NOTE: I get a syntax error when compiling LAPACK.hs in Windows with ghc-opts -O. | 149 | NOTE: In windows the library is currently compiled with -O0 -fasm to avoid |
144 | Please change it to ghc-opts -O0 in hssl.cabal and build again. | 150 | a C syntax error on clapack.h. You won't notice any appreciable difference |
145 | You won't notice any appreciable difference in performance, but I will try to fix it asap. | 151 | in performance, but I will try to fix it asap. |
146 | 152 | ||
147 | ACKNOWLEDGEMENTS | 153 | ACKNOWLEDGEMENTS |
148 | 154 | ||