diff options
author | Alberto Ruiz <aruiz@um.es> | 2008-01-21 21:40:07 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2008-01-21 21:40:07 +0000 |
commit | 17749900a9146ddf6cd8ebf59dc35e56d6bff413 (patch) | |
tree | d352b7b155ebf650cd41a134aeb39450e54163b2 /lib/Numeric/GSL/Integration.hs | |
parent | 4fb0006a2227d3d5293a53b88ef67ce6ebd73440 (diff) |
IO CInt results
Diffstat (limited to 'lib/Numeric/GSL/Integration.hs')
-rw-r--r-- | lib/Numeric/GSL/Integration.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Numeric/GSL/Integration.hs b/lib/Numeric/GSL/Integration.hs index 747b34c..b5f5930 100644 --- a/lib/Numeric/GSL/Integration.hs +++ b/lib/Numeric/GSL/Integration.hs | |||
@@ -21,6 +21,7 @@ module Numeric.GSL.Integration ( | |||
21 | ) where | 21 | ) where |
22 | 22 | ||
23 | import Foreign | 23 | import Foreign |
24 | import Foreign.C.Types(CInt) | ||
24 | import Data.Packed.Internal(mkfun,check,(//)) | 25 | import Data.Packed.Internal(mkfun,check,(//)) |
25 | 26 | ||
26 | 27 | ||
@@ -55,7 +56,7 @@ integrateQAGS prec n f a b = unsafePerformIO $ do | |||
55 | 56 | ||
56 | foreign import ccall "gsl-aux.h integrate_qags" | 57 | foreign import ccall "gsl-aux.h integrate_qags" |
57 | c_integrate_qags :: FunPtr (Double-> Ptr() -> Double) -> Double -> Double -> Double -> Int | 58 | c_integrate_qags :: FunPtr (Double-> Ptr() -> Double) -> Double -> Double -> Double -> Int |
58 | -> Ptr Double -> Ptr Double -> IO Int | 59 | -> Ptr Double -> Ptr Double -> IO CInt |
59 | 60 | ||
60 | ----------------------------------------------------------------- | 61 | ----------------------------------------------------------------- |
61 | {- | Numerical integration using /gsl_integration_qng/ (useful for fast integration of smooth functions). For example: | 62 | {- | Numerical integration using /gsl_integration_qng/ (useful for fast integration of smooth functions). For example: |
@@ -86,5 +87,5 @@ integrateQNG prec f a b = unsafePerformIO $ do | |||
86 | 87 | ||
87 | foreign import ccall "gsl-aux.h integrate_qng" | 88 | foreign import ccall "gsl-aux.h integrate_qng" |
88 | c_integrate_qng :: FunPtr (Double-> Ptr() -> Double) -> Double -> Double -> Double | 89 | c_integrate_qng :: FunPtr (Double-> Ptr() -> Double) -> Double -> Double -> Double |
89 | -> Ptr Double -> Ptr Double -> IO Int | 90 | -> Ptr Double -> Ptr Double -> IO CInt |
90 | 91 | ||