diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/glpk/hmatrix-glpk.cabal | 2 | ||||
-rw-r--r-- | packages/gsl/hmatrix-gsl.cabal | 24 | ||||
-rw-r--r-- | packages/gsl/src/Numeric/GSL/Internal.hs | 3 | ||||
-rw-r--r-- | packages/sparse/hmatrix-sparse.cabal | 2 | ||||
-rw-r--r-- | packages/special/hmatrix-special.cabal | 2 | ||||
-rw-r--r-- | packages/sundials/hmatrix-sundials.cabal | 8 |
6 files changed, 19 insertions, 22 deletions
diff --git a/packages/glpk/hmatrix-glpk.cabal b/packages/glpk/hmatrix-glpk.cabal index b01f704..ca93775 100644 --- a/packages/glpk/hmatrix-glpk.cabal +++ b/packages/glpk/hmatrix-glpk.cabal | |||
@@ -1,6 +1,6 @@ | |||
1 | Name: hmatrix-glpk | 1 | Name: hmatrix-glpk |
2 | Version: 0.19.0.0 | 2 | Version: 0.19.0.0 |
3 | License: GPL | 3 | License: GPL-3 |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
6 | Maintainer: Alberto Ruiz <aruiz@um.es> | 6 | Maintainer: Alberto Ruiz <aruiz@um.es> |
diff --git a/packages/gsl/hmatrix-gsl.cabal b/packages/gsl/hmatrix-gsl.cabal index 6ec7960..76db835 100644 --- a/packages/gsl/hmatrix-gsl.cabal +++ b/packages/gsl/hmatrix-gsl.cabal | |||
@@ -1,21 +1,18 @@ | |||
1 | Name: hmatrix-gsl | 1 | Name: hmatrix-gsl |
2 | Version: 0.19.0.0 | 2 | Version: 0.19.0.0 |
3 | License: GPL | ||
4 | License-file: LICENSE | ||
5 | Author: Alberto Ruiz | ||
6 | Maintainer: Alberto Ruiz <aruiz@um.es> | ||
7 | Stability: provisional | ||
8 | Homepage: https://github.com/albertoruiz/hmatrix | ||
9 | Synopsis: Numerical computation | 3 | Synopsis: Numerical computation |
10 | Description: Purely functional interface to selected numerical computations, | 4 | Description: Purely functional interface to selected numerical computations, |
11 | internally implemented using GSL. | 5 | internally implemented using GSL. |
12 | 6 | Homepage: https://github.com/albertoruiz/hmatrix | |
7 | license: GPL-3 | ||
8 | license-file: LICENSE | ||
9 | Author: Alberto Ruiz | ||
10 | Maintainer: Alberto Ruiz <aruiz@um.es> | ||
11 | Stability: provisional | ||
13 | Category: Math | 12 | Category: Math |
14 | tested-with: GHC ==7.8 | ||
15 | |||
16 | cabal-version: >=1.8 | ||
17 | |||
18 | build-type: Simple | 13 | build-type: Simple |
14 | cabal-version: >=1.18 | ||
15 | |||
19 | 16 | ||
20 | extra-source-files: src/Numeric/GSL/gsl-ode.c | 17 | extra-source-files: src/Numeric/GSL/gsl-ode.c |
21 | 18 | ||
@@ -33,9 +30,6 @@ library | |||
33 | Build-Depends: base<5, hmatrix>=0.18, array, vector, | 30 | Build-Depends: base<5, hmatrix>=0.18, array, vector, |
34 | process, random | 31 | process, random |
35 | 32 | ||
36 | |||
37 | Extensions: ForeignFunctionInterface | ||
38 | |||
39 | hs-source-dirs: src | 33 | hs-source-dirs: src |
40 | Exposed-modules: Numeric.GSL.Differentiation, | 34 | Exposed-modules: Numeric.GSL.Differentiation, |
41 | Numeric.GSL.Integration, | 35 | Numeric.GSL.Integration, |
@@ -98,6 +92,8 @@ library | |||
98 | else | 92 | else |
99 | pkgconfig-depends: gsl | 93 | pkgconfig-depends: gsl |
100 | 94 | ||
95 | default-language: Haskell2010 | ||
96 | |||
101 | 97 | ||
102 | source-repository head | 98 | source-repository head |
103 | type: git | 99 | type: git |
diff --git a/packages/gsl/src/Numeric/GSL/Internal.hs b/packages/gsl/src/Numeric/GSL/Internal.hs index 1217162..e1f8d95 100644 --- a/packages/gsl/src/Numeric/GSL/Internal.hs +++ b/packages/gsl/src/Numeric/GSL/Internal.hs | |||
@@ -131,8 +131,7 @@ type TVM = TV (TM Res) | |||
131 | ww2 w1 o1 w2 o2 f = w1 o1 $ \a1 -> w2 o2 $ \a2 -> f a1 a2 | 131 | ww2 w1 o1 w2 o2 f = w1 o1 $ \a1 -> w2 o2 $ \a2 -> f a1 a2 |
132 | 132 | ||
133 | vec x f = unsafeWith x $ \p -> do | 133 | vec x f = unsafeWith x $ \p -> do |
134 | let v g = do | 134 | let v g = g (fi $ V.length x) p |
135 | g (fi $ V.length x) p | ||
136 | f v | 135 | f v |
137 | {-# INLINE vec #-} | 136 | {-# INLINE vec #-} |
138 | 137 | ||
diff --git a/packages/sparse/hmatrix-sparse.cabal b/packages/sparse/hmatrix-sparse.cabal index c3b6f65..4399b72 100644 --- a/packages/sparse/hmatrix-sparse.cabal +++ b/packages/sparse/hmatrix-sparse.cabal | |||
@@ -19,7 +19,7 @@ build-type: Simple | |||
19 | 19 | ||
20 | 20 | ||
21 | library | 21 | library |
22 | Build-Depends: base, hmatrix>=0.16 | 22 | Build-Depends: base<5, hmatrix>=0.16 |
23 | 23 | ||
24 | hs-source-dirs: src | 24 | hs-source-dirs: src |
25 | 25 | ||
diff --git a/packages/special/hmatrix-special.cabal b/packages/special/hmatrix-special.cabal index cf504e1..0890bc7 100644 --- a/packages/special/hmatrix-special.cabal +++ b/packages/special/hmatrix-special.cabal | |||
@@ -1,6 +1,6 @@ | |||
1 | Name: hmatrix-special | 1 | Name: hmatrix-special |
2 | Version: 0.19.0.0 | 2 | Version: 0.19.0.0 |
3 | License: GPL | 3 | License: GPL-3 |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
6 | Maintainer: Alberto Ruiz <aruiz@um.es> | 6 | Maintainer: Alberto Ruiz <aruiz@um.es> |
diff --git a/packages/sundials/hmatrix-sundials.cabal b/packages/sundials/hmatrix-sundials.cabal index 354f142..388f1db 100644 --- a/packages/sundials/hmatrix-sundials.cabal +++ b/packages/sundials/hmatrix-sundials.cabal | |||
@@ -1,7 +1,10 @@ | |||
1 | name: hmatrix-sundials | 1 | name: hmatrix-sundials |
2 | version: 0.19.0.0 | 2 | version: 0.19.0.0 |
3 | synopsis: hmatrix interface to sundials | 3 | synopsis: hmatrix interface to sundials |
4 | description: Foo bar baz | 4 | description: An interface to the solving suite SUNDIALS. Currently, it |
5 | mimics the solving interface in hmstrix-gsl but | ||
6 | provides more diagnostic information and the | ||
7 | Butcher Tableaux (for Runge-Kutta methods). | ||
5 | homepage: https://github.com/idontgetoutmuch/hmatrix/tree/sundials | 8 | homepage: https://github.com/idontgetoutmuch/hmatrix/tree/sundials |
6 | license: BSD3 | 9 | license: BSD3 |
7 | license-file: LICENSE | 10 | license-file: LICENSE |
@@ -12,7 +15,7 @@ category: Math | |||
12 | build-type: Simple | 15 | build-type: Simple |
13 | extra-source-files: ChangeLog.md, README.md, diagrams/*.png | 16 | extra-source-files: ChangeLog.md, README.md, diagrams/*.png |
14 | extra-doc-files: diagrams/*.png | 17 | extra-doc-files: diagrams/*.png |
15 | cabal-version: >=1.10 | 18 | cabal-version: >=1.18 |
16 | 19 | ||
17 | 20 | ||
18 | library | 21 | library |
@@ -49,7 +52,6 @@ test-suite hmatrix-sundials-testsuite | |||
49 | lens, | 52 | lens, |
50 | hspec | 53 | hspec |
51 | hs-source-dirs: src | 54 | hs-source-dirs: src |
52 | default-language: Haskell2010 | ||
53 | extra-libraries: sundials_arkode | 55 | extra-libraries: sundials_arkode |
54 | c-sources: src/helpers.c src/helpers.h | 56 | c-sources: src/helpers.c src/helpers.h |
55 | default-language: Haskell2010 | 57 | default-language: Haskell2010 |