hmatrix-glpk 0.2.2 → 0.3.0
raw patch · 2 files changed
+20/−6 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- hmatrix-glpk.cabal +17/−4
- lib/Numeric/LinearProgramming.hs +3/−2
hmatrix-glpk.cabal view
@@ -1,5 +1,5 @@ Name: hmatrix-glpk-Version: 0.2.2+Version: 0.3.0 License: GPL License-file: LICENSE Author: Alberto Ruiz@@ -11,9 +11,9 @@ Simple interface to linear programming functions provided by GLPK. Category: Math-tested-with: GHC ==6.10.4, GHC ==7.0.3+tested-with: GHC ==7.4 -cabal-version: >=1.2+cabal-version: >=1.6 build-type: Simple extra-source-files: examples/simplex1.hs@@ -30,6 +30,19 @@ c-sources: lib/Numeric/LinearProgramming/glpk.c - ghc-options: -Wall+ ghc-options: -Wall extra-libraries: glpk++ if os(OSX)+ extra-lib-dirs: /opt/local/lib/+ include-dirs: /opt/local/include/+ extra-lib-dirs: /usr/local/lib/+ include-dirs: /usr/local/include/+ if arch(i386)+ cc-options: -arch i386++source-repository head+ type: git+ location: https://github.com/AlbertoRuiz/hmatrix+
lib/Numeric/LinearProgramming.hs view
@@ -69,8 +69,9 @@ import Numeric.LinearAlgebra hiding (i) import Data.Packed.Development-import Foreign(Ptr,unsafePerformIO)-import Foreign.C.Types(CInt)+import Foreign(Ptr)+import System.IO.Unsafe(unsafePerformIO)+import Foreign.C.Types import Data.List((\\),sortBy,nub) import Data.Function(on)