summaryrefslogtreecommitdiff
path: root/packages/hmatrix/hmatrix.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'packages/hmatrix/hmatrix.cabal')
-rw-r--r--packages/hmatrix/hmatrix.cabal205
1 files changed, 205 insertions, 0 deletions
diff --git a/packages/hmatrix/hmatrix.cabal b/packages/hmatrix/hmatrix.cabal
new file mode 100644
index 0000000..b029dc9
--- /dev/null
+++ b/packages/hmatrix/hmatrix.cabal
@@ -0,0 +1,205 @@
1Name: hmatrix
2Version: 0.16.0.0
3License: GPL
4License-file: LICENSE
5Author: Alberto Ruiz
6Maintainer: Alberto Ruiz <aruiz@um.es>
7Stability: provisional
8Homepage: https://github.com/albertoruiz/hmatrix
9Synopsis: Linear algebra and numerical computation
10Description: Purely functional interface to basic linear algebra
11 and other numerical computations, internally implemented using
12 GSL, BLAS and LAPACK.
13
14Category: Math
15tested-with: GHC ==7.8
16
17cabal-version: >=1.8
18
19build-type: Simple
20
21extra-source-files: Config.hs THANKS.md INSTALL.md CHANGELOG
22
23extra-source-files: examples/deriv.hs
24 examples/integrate.hs
25 examples/minimize.hs
26 examples/root.hs
27 examples/ode.hs
28 examples/pca1.hs
29 examples/pca2.hs
30 examples/pinv.hs
31 examples/data.txt
32 examples/lie.hs
33 examples/kalman.hs
34 examples/parallel.hs
35 examples/plot.hs
36 examples/inplace.hs
37 examples/error.hs
38 examples/fitting.hs
39 examples/devel/ej1/wrappers.hs
40 examples/devel/ej1/functions.c
41 examples/devel/ej2/wrappers.hs
42 examples/devel/ej2/functions.c
43 examples/vector.hs
44 examples/monadic.hs
45 examples/bool.hs
46 examples/multiply.hs
47
48extra-source-files: src/Numeric/LinearAlgebra/LAPACK/lapack-aux.h,
49 src/Numeric/GSL/gsl-ode.c
50
51flag dd
52 description: svd = zgesdd
53 default: True
54
55flag mkl
56 description: Link with Intel's MKL optimized libraries.
57 default: False
58
59flag unsafe
60 description: Compile the library with bound checking disabled.
61 default: False
62
63flag finit
64 description: Force FPU initialization in foreing calls
65 default: False
66
67flag debugfpu
68 description: Check FPU stack
69 default: False
70
71flag debugnan
72 description: Check NaN
73 default: False
74
75library
76
77 Build-Depends: base, hmatrix-base,
78 array,
79 storable-complex,
80 process, random,
81 vector >= 0.8,
82 binary,
83 deepseq
84
85 Extensions: ForeignFunctionInterface,
86 CPP
87
88 hs-source-dirs: src
89 Exposed-modules: Data.Packed,
90 Data.Packed.Vector,
91 Data.Packed.Matrix,
92 Data.Packed.Foreign,
93 Numeric.GSL.Differentiation,
94 Numeric.GSL.Integration,
95 Numeric.GSL.Fourier,
96 Numeric.GSL.Polynomials,
97 Numeric.GSL.Minimization,
98 Numeric.GSL.Root,
99 Numeric.GSL.Fitting,
100 Numeric.GSL.ODE,
101 Numeric.GSL,
102 Numeric.Container,
103 Numeric.LinearAlgebra,
104 Numeric.LinearAlgebra.LAPACK,
105 Numeric.LinearAlgebra.Algorithms,
106 Numeric.LinearAlgebra.Util,
107 Data.Packed.ST,
108 Data.Packed.Development
109 Graphics.Plot,
110 Numeric.HMatrix,
111 Numeric.HMatrix.Data,
112 Numeric.HMatrix.Devel
113 other-modules: Data.Packed.Internal,
114 Data.Packed.Internal.Common,
115 Data.Packed.Internal.Signatures,
116 Data.Packed.Internal.Vector,
117 Data.Packed.Internal.Matrix,
118 Data.Packed.Random,
119 Numeric.GSL.Internal,
120 Numeric.GSL.Vector,
121 Numeric.Conversion,
122 Numeric.ContainerBoot,
123 Numeric.IO,
124 Numeric.Chain,
125 Numeric.Vector,
126 Numeric.Matrix,
127 Numeric.LinearAlgebra.Util.Convolution
128
129
130 C-sources: src/Numeric/LinearAlgebra/LAPACK/lapack-aux.c,
131 src/Numeric/GSL/gsl-aux.c
132
133 cc-options: -O4 -msse2 -Wall
134
135 cpp-options: -DBINARY
136
137 -- ghc-prof-options: -auto
138
139 ghc-options: -Wall -fno-warn-missing-signatures
140 -fno-warn-orphans
141 -fno-warn-unused-binds
142
143 if flag(unsafe)
144 cpp-options: -DUNSAFE
145
146 if !flag(dd)
147 cpp-options: -DNOZGESDD
148
149 if impl(ghc < 6.10.2)
150 cpp-options: -DFINIT
151
152 if impl(ghc == 7.0.1)
153 cpp-options: -DFINIT
154
155 if impl(ghc == 7.0.2)
156 cpp-options: -DFINIT
157
158 if flag(finit)
159 cpp-options: -DFINIT
160
161 if flag(debugfpu)
162 cc-options: -DFPUDEBUG
163
164 if flag(debugnan)
165 cc-options: -DNANDEBUG
166
167 if impl(ghc == 7.0.1)
168 cpp-options: -DNONORMVTEST
169
170 if flag(mkl)
171 if arch(x86_64)
172 extra-libraries: gsl mkl_lapack mkl_intel_lp64 mkl_sequential mkl_core
173 else
174 extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core
175
176 if os(OSX)
177 extra-lib-dirs: /opt/local/lib/
178 include-dirs: /opt/local/include/
179 extra-lib-dirs: /usr/local/lib/
180 include-dirs: /usr/local/include/
181 extra-libraries: gsl
182 if arch(i386)
183 cc-options: -arch i386
184 frameworks: Accelerate
185
186 if os(freebsd)
187 extra-lib-dirs: /usr/local/lib
188 include-dirs: /usr/local/include
189 extra-libraries: gsl blas lapack
190
191 if os(windows)
192 extra-libraries: gsl-0 blas lapack
193
194 if os(linux)
195 if arch(x86_64)
196 cc-options: -fPIC
197
198 extra-libraries: gsl
199
200source-repository head
201 type: git
202 location: https://github.com/albertoruiz/hmatrix
203
204-- The tests are in package hmatrix-tests
205