diff options
Diffstat (limited to 'lib/Numeric/GSL/Internal.hs')
-rw-r--r-- | lib/Numeric/GSL/Internal.hs | 6 |
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" | |||
30 | foreign import ccall "wrapper" | 30 | foreign import ccall "wrapper" |
31 | mkVecVecfun :: TVV -> IO (FunPtr TVV) | 31 | mkVecVecfun :: TVV -> IO (FunPtr TVV) |
32 | 32 | ||
33 | foreign import ccall "wrapper" | ||
34 | mkDoubleVecVecfun :: (Double -> TVV) -> IO (FunPtr (Double -> TVV)) | ||
35 | |||
33 | aux_vTov :: (Vector Double -> Vector Double) -> TVV | 36 | aux_vTov :: (Vector Double -> Vector Double) -> TVV |
34 | aux_vTov f n p nr r = g where | 37 | aux_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 | |||
43 | foreign import ccall "wrapper" | 46 | foreign import ccall "wrapper" |
44 | mkVecMatfun :: TVM -> IO (FunPtr TVM) | 47 | mkVecMatfun :: TVM -> IO (FunPtr TVM) |
45 | 48 | ||
49 | foreign import ccall "wrapper" | ||
50 | mkDoubleVecMatfun :: (Double -> TVM) -> IO (FunPtr (Double -> TVM)) | ||
51 | |||
46 | aux_vTom :: (Vector Double -> Matrix Double) -> TVM | 52 | aux_vTom :: (Vector Double -> Matrix Double) -> TVM |
47 | aux_vTom f n p rr cr r = g where | 53 | aux_vTom f n p rr cr r = g where |
48 | V {fptr = pr} = flatten $ f x | 54 | V {fptr = pr} = flatten $ f x |