summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Internal.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/GSL/Internal.hs')
-rw-r--r--lib/Numeric/GSL/Internal.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Internal.hs b/lib/Numeric/GSL/Internal.hs
index 834dfc2..37bcc1b 100644
--- a/lib/Numeric/GSL/Internal.hs
+++ b/lib/Numeric/GSL/Internal.hs
@@ -30,6 +30,9 @@ foreign import ccall "wrapper"
30foreign import ccall "wrapper" 30foreign import ccall "wrapper"
31 mkVecVecfun :: TVV -> IO (FunPtr TVV) 31 mkVecVecfun :: TVV -> IO (FunPtr TVV)
32 32
33foreign import ccall "wrapper"
34 mkDoubleVecVecfun :: (Double -> TVV) -> IO (FunPtr (Double -> TVV))
35
33aux_vTov :: (Vector Double -> Vector Double) -> TVV 36aux_vTov :: (Vector Double -> Vector Double) -> TVV
34aux_vTov f n p nr r = g where 37aux_vTov f n p nr r = g where
35 V {fptr = pr} = f x 38 V {fptr = pr} = f x
@@ -43,6 +46,9 @@ aux_vTov f n p nr r = g where
43foreign import ccall "wrapper" 46foreign import ccall "wrapper"
44 mkVecMatfun :: TVM -> IO (FunPtr TVM) 47 mkVecMatfun :: TVM -> IO (FunPtr TVM)
45 48
49foreign import ccall "wrapper"
50 mkDoubleVecMatfun :: (Double -> TVM) -> IO (FunPtr (Double -> TVM))
51
46aux_vTom :: (Vector Double -> Matrix Double) -> TVM 52aux_vTom :: (Vector Double -> Matrix Double) -> TVM
47aux_vTom f n p rr cr r = g where 53aux_vTom f n p rr cr r = g where
48 V {fptr = pr} = flatten $ f x 54 V {fptr = pr} = flatten $ f x