casadi-bindings 2.4.1.3 → 2.4.1.4
raw patch · 5 files changed
+9/−1 lines, 5 files
Files
- casadi-bindings.cabal +1/−1
- src/Casadi/CMatrix.hs +2/−0
- src/Casadi/DMatrix.hs +2/−0
- src/Casadi/MX.hs +2/−0
- src/Casadi/SX.hs +2/−0
casadi-bindings.cabal view
@@ -1,5 +1,5 @@ name: casadi-bindings-version: 2.4.1.3+version: 2.4.1.4 synopsis: mid-level bindings to CasADi category: Numerical, Math description:
src/Casadi/CMatrix.hs view
@@ -16,6 +16,7 @@ import Casadi.Slice ( Slice, slice ) import Casadi.Viewable ( Viewable ) +-- TODO(greg): alphabetize this, it's getting too big to manage class (Eq a, Show a, Floating a, Fmod a, ArcTan2 a, SymOrd a, Erf a, Viewable a) => CMatrix a where blocksplit :: a -> V.Vector Int -> V.Vector Int -> V.Vector (V.Vector a)@@ -57,6 +58,7 @@ fromDVector :: V.Vector Double -> a fromDouble :: Double -> a allocEmpty :: IO a+ reshape :: a -> (Int, Int) -> a {-# DEPRECATED solve' "use the new solve, this one is going away" #-}
src/Casadi/DMatrix.hs view
@@ -146,6 +146,8 @@ fromDouble x = unsafePerformIO (dmatrix__3 x) {-# NOINLINE fromDouble #-} allocEmpty = dmatrix__8+ reshape x s = unsafePerformIO (C.casadi_reshape__4 x s)+ {-# NOINLINE reshape #-} instance Num DMatrix where
src/Casadi/MX.hs view
@@ -147,6 +147,8 @@ fromDouble x = unsafePerformIO (mx__3 x) {-# NOINLINE fromDouble #-} allocEmpty = mx__7+ reshape x s = unsafePerformIO (C.casadi_reshape__10 x s)+ {-# NOINLINE reshape #-} instance Num MX where
src/Casadi/SX.hs view
@@ -142,6 +142,8 @@ fromDouble x = unsafePerformIO (sx__5 x) {-# NOINLINE fromDouble #-} allocEmpty = sx__10+ reshape x s = unsafePerformIO (C.casadi_reshape__1 x s)+ {-# NOINLINE reshape #-} instance Num SX where