summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Differentiation.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/GSL/Differentiation.hs')
-rw-r--r--lib/Numeric/GSL/Differentiation.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Numeric/GSL/Differentiation.hs b/lib/Numeric/GSL/Differentiation.hs
index 071704a..841f2a0 100644
--- a/lib/Numeric/GSL/Differentiation.hs
+++ b/lib/Numeric/GSL/Differentiation.hs
@@ -23,6 +23,7 @@ module Numeric.GSL.Differentiation (
23) where 23) where
24 24
25import Foreign 25import Foreign
26import Foreign.C.Types(CInt)
26import Data.Packed.Internal(mkfun,check,(//)) 27import Data.Packed.Internal(mkfun,check,(//))
27 28
28derivGen :: 29derivGen ::
@@ -46,7 +47,7 @@ derivGen c h f x = unsafePerformIO $ do
46 47
47foreign import ccall "gsl-aux.h deriv" 48foreign import ccall "gsl-aux.h deriv"
48 c_deriv :: Int -> FunPtr (Double -> Ptr () -> Double) -> Double -> Double 49 c_deriv :: Int -> FunPtr (Double -> Ptr () -> Double) -> Double -> Double
49 -> Ptr Double -> Ptr Double -> IO Int 50 -> Ptr Double -> Ptr Double -> IO CInt
50 51
51 52
52{- | Adaptive central difference algorithm, /gsl_deriv_central/. For example: 53{- | Adaptive central difference algorithm, /gsl_deriv_central/. For example: