summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Minimization.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-11-22 17:03:41 +0000
committerAlberto Ruiz <aruiz@um.es>2007-11-22 17:03:41 +0000
commit01a14ad32e0fd8586498ead61a426f20b724652b (patch)
treeb894c4d09700c2cf1f6abf2c89e6df81eebddb71 /lib/Numeric/GSL/Minimization.hs
parent2f45fdd97f80c0ffd0e10cce68d1cd24a43696c0 (diff)
app1, app2, ...
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