summaryrefslogtreecommitdiff
path: root/packages/base/hmatrix.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'packages/base/hmatrix.cabal')
-rw-r--r--packages/base/hmatrix.cabal116
1 files changed, 61 insertions, 55 deletions
diff --git a/packages/base/hmatrix.cabal b/packages/base/hmatrix.cabal
index 3895dc1..7bed0d3 100644
--- a/packages/base/hmatrix.cabal
+++ b/packages/base/hmatrix.cabal
@@ -1,5 +1,5 @@
1Name: hmatrix 1Name: hmatrix
2Version: 0.16.1.5 2Version: 0.17.0.1
3License: BSD3 3License: BSD3
4License-file: LICENSE 4License-file: LICENSE
5Author: Alberto Ruiz 5Author: Alberto Ruiz
@@ -7,17 +7,11 @@ Maintainer: Alberto Ruiz
7Stability: provisional 7Stability: provisional
8Homepage: https://github.com/albertoruiz/hmatrix 8Homepage: https://github.com/albertoruiz/hmatrix
9Synopsis: Numeric Linear Algebra 9Synopsis: Numeric Linear Algebra
10Description: Linear algebra based on BLAS and LAPACK. 10Description: Linear systems, matrix decompositions, and other numerical computations based on BLAS and LAPACK.
11 . 11 .
12 The package is organized as follows: 12 Standard interface: "Numeric.LinearAlgebra".
13 . 13 .
14 ["Numeric.LinearAlgebra.HMatrix"] Starting point and recommended import module for most applications. 14 Safer interface with statically checked dimensions: "Numeric.LinearAlgebra.Static".
15 .
16 ["Numeric.LinearAlgebra.Static"] Experimental alternative interface.
17 .
18 ["Numeric.LinearAlgebra.Devel"] Tools for extending the library.
19 .
20 (Other modules are exposed with hidden documentation for backwards compatibility.)
21 . 15 .
22 Code examples: <http://dis.um.es/~alberto/hmatrix/hmatrix.html> 16 Code examples: <http://dis.um.es/~alberto/hmatrix/hmatrix.html>
23 17
@@ -30,16 +24,16 @@ build-type: Simple
30 24
31extra-source-files: THANKS.md CHANGELOG 25extra-source-files: THANKS.md CHANGELOG
32 26
33extra-source-files: src/C/lapack-aux.h 27extra-source-files: src/Internal/C/lapack-aux.h
34 28
35flag openblas 29flag openblas
36 description: Link with OpenBLAS (https://github.com/xianyi/OpenBLAS) optimized libraries. 30 description: Link with OpenBLAS (https://github.com/xianyi/OpenBLAS) optimized libraries.
37 default: False 31 default: False
38 manual: True 32 manual: True
39 33
40library 34library
41 35
42 Build-Depends: base >= 4 && < 5, 36 Build-Depends: base >= 4.8 && < 5,
43 binary, 37 binary,
44 array, 38 array,
45 deepseq, 39 deepseq,
@@ -51,47 +45,38 @@ library
51 45
52 hs-source-dirs: src 46 hs-source-dirs: src
53 47
54 exposed-modules: Data.Packed, 48 exposed-modules: Numeric.LinearAlgebra
55 Data.Packed.Vector,
56 Data.Packed.Matrix,
57 Data.Packed.Foreign,
58 Data.Packed.ST,
59 Data.Packed.Development,
60
61 Numeric.LinearAlgebra
62 Numeric.LinearAlgebra.LAPACK
63 Numeric.LinearAlgebra.Algorithms
64 Numeric.Container
65 Numeric.LinearAlgebra.Util
66
67 Numeric.LinearAlgebra.Devel 49 Numeric.LinearAlgebra.Devel
68 Numeric.LinearAlgebra.Data 50 Numeric.LinearAlgebra.Data
69 Numeric.LinearAlgebra.HMatrix 51 Numeric.LinearAlgebra.HMatrix
70 Numeric.LinearAlgebra.Static 52 Numeric.LinearAlgebra.Static
71
72
73 53
74 other-modules: Data.Packed.Internal, 54 other-modules: Internal.Vector
75 Data.Packed.Internal.Common 55 Internal.Devel
76 Data.Packed.Internal.Signatures 56 Internal.Vectorized
77 Data.Packed.Internal.Vector 57 Internal.Matrix
78 Data.Packed.Internal.Matrix 58 Internal.Foreign
79 Data.Packed.IO 59 Internal.ST
80 Numeric.Chain 60 Internal.IO
81 Numeric.Vectorized 61 Internal.Element
62 Internal.Conversion
63 Internal.LAPACK
64 Internal.Numeric
65 Internal.Algorithms
66 Internal.Random
67 Internal.Container
68 Internal.Sparse
69 Internal.Convolution
70 Internal.Chain
82 Numeric.Vector 71 Numeric.Vector
72 Internal.CG
83 Numeric.Matrix 73 Numeric.Matrix
84 Data.Packed.Internal.Numeric 74 Internal.Util
85 Data.Packed.Numeric 75 Internal.Modular
86 Numeric.LinearAlgebra.Util.Convolution 76 Internal.Static
87 Numeric.LinearAlgebra.Util.CG
88 Numeric.LinearAlgebra.Random
89 Numeric.Conversion
90 Numeric.Sparse
91 Numeric.LinearAlgebra.Static.Internal
92 77
93 C-sources: src/C/lapack-aux.c 78 C-sources: src/Internal/C/lapack-aux.c
94 src/C/vector-aux.c 79 src/Internal/C/vector-aux.c
95 80
96 81
97 extensions: ForeignFunctionInterface, 82 extensions: ForeignFunctionInterface,
@@ -100,18 +85,24 @@ library
100 ghc-options: -Wall 85 ghc-options: -Wall
101 -fno-warn-missing-signatures 86 -fno-warn-missing-signatures
102 -fno-warn-orphans 87 -fno-warn-orphans
88 -fprof-auto
103 89
104 cc-options: -O4 -msse2 -Wall 90 cc-options: -O4 -Wall
105 91
106 cpp-options: -DBINARY 92 if arch(x86_64)
93 cc-options: -msse2
94 if arch(i386)
95 cc-options: -msse2
107 96
108 if flag(openblas) 97 cpp-options: -DBINARY
109 extra-lib-dirs: /usr/lib/openblas/lib
110 extra-libraries: openblas
111 else
112 extra-libraries: blas lapack
113 98
114 if os(OSX) 99 if os(OSX)
100 if flag(openblas)
101 extra-lib-dirs: /opt/local/lib/openblas/lib
102 extra-libraries: openblas
103 else
104 extra-libraries: blas lapack
105
115 extra-lib-dirs: /opt/local/lib/ 106 extra-lib-dirs: /opt/local/lib/
116 include-dirs: /opt/local/include/ 107 include-dirs: /opt/local/include/
117 extra-lib-dirs: /usr/local/lib/ 108 extra-lib-dirs: /usr/local/lib/
@@ -121,14 +112,29 @@ library
121 frameworks: Accelerate 112 frameworks: Accelerate
122 113
123 if os(freebsd) 114 if os(freebsd)
115 if flag(openblas)
116 extra-lib-dirs: /usr/local/lib/openblas/lib
117 extra-libraries: openblas
118 else
119 extra-libraries: blas lapack
120
124 extra-lib-dirs: /usr/local/lib 121 extra-lib-dirs: /usr/local/lib
125 include-dirs: /usr/local/include 122 include-dirs: /usr/local/include
126 extra-libraries: blas lapack gfortran 123 extra-libraries: gfortran
127 124
128 if os(windows) 125 if os(windows)
129 extra-libraries: blas lapack 126 if flag(openblas)
127 extra-libraries: libopenblas
128 else
129 extra-libraries: blas lapack
130 130
131 if os(linux) 131 if os(linux)
132 if flag(openblas)
133 extra-lib-dirs: /usr/lib/openblas/lib
134 extra-libraries: openblas
135 else
136 extra-libraries: blas lapack
137
132 if arch(x86_64) 138 if arch(x86_64)
133 cc-options: -fPIC 139 cc-options: -fPIC
134 140