summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Minimization.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/GSL/Minimization.hs')
-rw-r--r--lib/Numeric/GSL/Minimization.hs14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/Numeric/GSL/Minimization.hs b/lib/Numeric/GSL/Minimization.hs
index e44b2e5..235a88f 100644
--- a/lib/Numeric/GSL/Minimization.hs
+++ b/lib/Numeric/GSL/Minimization.hs
@@ -196,22 +196,12 @@ aux_vTov f n p r = g where
196 196
197-------------------------------------------------------------------- 197--------------------------------------------------------------------
198 198
199
200createV n fun msg = unsafePerformIO $ do 199createV n fun msg = unsafePerformIO $ do
201 r <- createVector n 200 r <- createVector n
202 withVector r $ \ r -> 201 app1 fun vec r msg
203 fun // r // check msg
204 return r 202 return r
205 203
206{-
207createM r c fun msg ptrs = unsafePerformIO $ do
208 r <- createMatrix RowMajor r c
209 fun // matc r // check msg ptrs
210 return r
211-}
212
213createMIO r c fun msg = do 204createMIO r c fun msg = do
214 r <- createMatrix RowMajor r c 205 r <- createMatrix RowMajor r c
215 withMatrix r $ \ r -> 206 app1 fun mat r msg
216 fun // r // check msg
217 return r 207 return r