diff options
Diffstat (limited to 'packages/glpk/lib')
-rw-r--r-- | packages/glpk/lib/Numeric/LinearProgramming.hs | 5 |
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 | |||
5 | Copyright : (c) Alberto Ruiz 2010 | 5 | Copyright : (c) Alberto Ruiz 2010 |
6 | License : GPL | 6 | License : GPL |
7 | 7 | ||
8 | Maintainer : Alberto Ruiz (aruiz at um dot es) | 8 | Maintainer : Alberto Ruiz |
9 | Stability : provisional | 9 | Stability : provisional |
10 | 10 | ||
11 | This module provides an interface to the standard simplex algorithm. | 11 | This 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 | ||
70 | import Numeric.LinearAlgebra hiding (i) | 70 | import Data.Packed |
71 | import Data.Packed.Development | 71 | import Data.Packed.Development |
72 | import Foreign(Ptr) | 72 | import Foreign(Ptr) |
73 | import System.IO.Unsafe(unsafePerformIO) | 73 | import System.IO.Unsafe(unsafePerformIO) |
@@ -224,7 +224,6 @@ foreign import ccall unsafe "c_simplex_sparse" c_simplex_sparse | |||
224 | simplexSparse :: Int -> Int -> Matrix Double -> Matrix Double -> Vector Double | 224 | simplexSparse :: Int -> Int -> Matrix Double -> Matrix Double -> Vector Double |
225 | simplexSparse m n c b = unsafePerformIO $ do | 225 | simplexSparse 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 | ||