summaryrefslogtreecommitdiff
path: root/packages/glpk/lib/Numeric
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2014-05-08 13:43:07 +0200
committerAlberto Ruiz <aruiz@um.es>2014-05-08 13:43:07 +0200
commit551cf7498c33bc0948bb4cb8444ae6f8af7278ea (patch)
treeec86ff73151746f5e13b83549ea5c60ed442764d /packages/glpk/lib/Numeric
parent561a6c0e21bb77c21114ccbbd86d3af5ddb5a3f1 (diff)
separation ok
Diffstat (limited to 'packages/glpk/lib/Numeric')
-rw-r--r--packages/glpk/lib/Numeric/LinearProgramming.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/glpk/lib/Numeric/LinearProgramming.hs b/packages/glpk/lib/Numeric/LinearProgramming.hs
index 6a3e186..25cdab2 100644
--- a/packages/glpk/lib/Numeric/LinearProgramming.hs
+++ b/packages/glpk/lib/Numeric/LinearProgramming.hs
@@ -5,7 +5,7 @@ Module : Numeric.LinearProgramming
5Copyright : (c) Alberto Ruiz 2010 5Copyright : (c) Alberto Ruiz 2010
6License : GPL 6License : GPL
7 7
8Maintainer : Alberto Ruiz (aruiz at um dot es) 8Maintainer : Alberto Ruiz
9Stability : provisional 9Stability : provisional
10 10
11This module provides an interface to the standard simplex algorithm. 11This module provides an interface to the standard simplex algorithm.
@@ -67,7 +67,7 @@ module Numeric.LinearProgramming(
67 Solution(..) 67 Solution(..)
68) where 68) where
69 69
70import Numeric.LinearAlgebra hiding (i) 70import Data.Packed
71import Data.Packed.Development 71import Data.Packed.Development
72import Foreign(Ptr) 72import Foreign(Ptr)
73import System.IO.Unsafe(unsafePerformIO) 73import System.IO.Unsafe(unsafePerformIO)
@@ -224,7 +224,6 @@ foreign import ccall unsafe "c_simplex_sparse" c_simplex_sparse
224simplexSparse :: Int -> Int -> Matrix Double -> Matrix Double -> Vector Double 224simplexSparse :: Int -> Int -> Matrix Double -> Matrix Double -> Vector Double
225simplexSparse m n c b = unsafePerformIO $ do 225simplexSparse m n c b = unsafePerformIO $ do
226 s <- createVector (2+n) 226 s <- createVector (2+n)
227 let fi = fromIntegral
228 app3 (c_simplex_sparse (fi m) (fi n)) mat (cmat c) mat (cmat b) vec s "c_simplex_sparse" 227 app3 (c_simplex_sparse (fi m) (fi n)) mat (cmat c) mat (cmat b) vec s "c_simplex_sparse"
229 return s 228 return s
230 229