summaryrefslogtreecommitdiff
path: root/packages/gsl/src/Numeric/GSL/Internal.hs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gsl/src/Numeric/GSL/Internal.hs')
-rw-r--r--packages/gsl/src/Numeric/GSL/Internal.hs15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/gsl/src/Numeric/GSL/Internal.hs b/packages/gsl/src/Numeric/GSL/Internal.hs
index dcd3bc4..f70e167 100644
--- a/packages/gsl/src/Numeric/GSL/Internal.hs
+++ b/packages/gsl/src/Numeric/GSL/Internal.hs
@@ -1,3 +1,5 @@
1{-# LANGUAGE FlexibleContexts #-}
2
1-- | 3-- |
2-- Module : Numeric.GSL.Internal 4-- Module : Numeric.GSL.Internal
3-- Copyright : (c) Alberto Ruiz 2009 5-- Copyright : (c) Alberto Ruiz 2009
@@ -23,7 +25,7 @@ module Numeric.GSL.Internal(
23 createV, 25 createV,
24 createMIO, 26 createMIO,
25 module Numeric.LinearAlgebra.Devel, 27 module Numeric.LinearAlgebra.Devel,
26 check,(#),vec, ww2, 28 check,(#),(#!),vec, ww2,
27 Res,TV,TM,TCV,TCM 29 Res,TV,TM,TCV,TCM
28) where 30) where
29 31
@@ -86,12 +88,12 @@ aux_vTom f n p rr cr r = g where
86 88
87createV n fun msg = unsafePerformIO $ do 89createV n fun msg = unsafePerformIO $ do
88 r <- createVector n 90 r <- createVector n
89 fun # r #| msg 91 (r # id) fun #| msg
90 return r 92 return r
91 93
92createMIO r c fun msg = do 94createMIO r c fun msg = do
93 res <- createMatrix RowMajor r c 95 res <- createMatrix RowMajor r c
94 fun # res #| msg 96 (res # id) fun #| msg
95 return res 97 return res
96 98
97-------------------------------------------------------------------------------- 99--------------------------------------------------------------------------------
@@ -135,3 +137,10 @@ infixl 1 #
135a # b = applyRaw a b 137a # b = applyRaw a b
136{-# INLINE (#) #-} 138{-# INLINE (#) #-}
137 139
140--infixr 1 #
141--a # b = apply a b
142--{-# INLINE (#) #-}
143
144a #! b = a # b # id
145{-# INLINE (#!) #-}
146