diff options
Diffstat (limited to 'packages/hmatrix/src/Numeric/GSL/Differentiation.hs')
-rw-r--r-- | packages/hmatrix/src/Numeric/GSL/Differentiation.hs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/hmatrix/src/Numeric/GSL/Differentiation.hs b/packages/hmatrix/src/Numeric/GSL/Differentiation.hs index 93c5007..0fb58ef 100644 --- a/packages/hmatrix/src/Numeric/GSL/Differentiation.hs +++ b/packages/hmatrix/src/Numeric/GSL/Differentiation.hs | |||
@@ -1,13 +1,10 @@ | |||
1 | {-# OPTIONS #-} | ||
2 | ----------------------------------------------------------------------------- | ||
3 | {- | | 1 | {- | |
4 | Module : Numeric.GSL.Differentiation | 2 | Module : Numeric.GSL.Differentiation |
5 | Copyright : (c) Alberto Ruiz 2006 | 3 | Copyright : (c) Alberto Ruiz 2006 |
6 | License : GPL-style | 4 | License : GPL |
7 | 5 | ||
8 | Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | Maintainer : Alberto Ruiz |
9 | Stability : provisional | 7 | Stability : provisional |
10 | Portability : uses ffi | ||
11 | 8 | ||
12 | Numerical differentiation. | 9 | Numerical differentiation. |
13 | 10 | ||
@@ -15,7 +12,8 @@ Numerical differentiation. | |||
15 | 12 | ||
16 | From the GSL manual: \"The functions described in this chapter compute numerical derivatives by finite differencing. An adaptive algorithm is used to find the best choice of finite difference and to estimate the error in the derivative.\" | 13 | From the GSL manual: \"The functions described in this chapter compute numerical derivatives by finite differencing. An adaptive algorithm is used to find the best choice of finite difference and to estimate the error in the derivative.\" |
17 | -} | 14 | -} |
18 | ----------------------------------------------------------------------------- | 15 | |
16 | |||
19 | module Numeric.GSL.Differentiation ( | 17 | module Numeric.GSL.Differentiation ( |
20 | derivCentral, | 18 | derivCentral, |
21 | derivForward, | 19 | derivForward, |
@@ -26,7 +24,7 @@ import Foreign.C.Types | |||
26 | import Foreign.Marshal.Alloc(malloc, free) | 24 | import Foreign.Marshal.Alloc(malloc, free) |
27 | import Foreign.Ptr(Ptr, FunPtr, freeHaskellFunPtr) | 25 | import Foreign.Ptr(Ptr, FunPtr, freeHaskellFunPtr) |
28 | import Foreign.Storable(peek) | 26 | import Foreign.Storable(peek) |
29 | import Data.Packed.Internal(check,(//)) | 27 | import Numeric.GSL.Internal |
30 | import System.IO.Unsafe(unsafePerformIO) | 28 | import System.IO.Unsafe(unsafePerformIO) |
31 | 29 | ||
32 | derivGen :: | 30 | derivGen :: |