casadi-bindings 3.0.0.0 → 3.0.0.1
raw patch · 5 files changed
+8/−1 lines, 5 files
Files
- casadi-bindings.cabal +1/−1
- src/Casadi/CMatrix.hs +1/−0
- src/Casadi/DM.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: 3.0.0.0+version: 3.0.0.1 synopsis: mid-level bindings to CasADi category: Numerical, Math description:
src/Casadi/CMatrix.hs view
@@ -65,6 +65,7 @@ conditional' :: a -> V.Vector a -> a -> Bool -> a cmin :: a -> a -> a cmax :: a -> a -> a+ repmat :: a -> (Int, Int) -> a {-# DEPRECATED solve' "use the new solve, this one is going away" #-}
src/Casadi/DM.hs view
@@ -155,6 +155,8 @@ {-# NOINLINE cmax #-} cmin x y = unsafePerformIO (C.casadi_min__2 x y) {-# NOINLINE cmin #-}+ repmat x (s1, s2) = unsafePerformIO (C.casadi_repmat__5 x s1 s2)+ {-# NOINLINE repmat #-} instance Num DM where (+) x y = unsafePerformIO (C.casadi_plus__2 x y)
src/Casadi/MX.hs view
@@ -156,6 +156,8 @@ {-# NOINLINE cmax #-} cmin x y = unsafePerformIO (C.casadi_min__4 x y) {-# NOINLINE cmin #-}+ repmat x (s1, s2) = unsafePerformIO (C.casadi_repmat__11 x s1 s2)+ {-# NOINLINE repmat #-} instance Num MX where
src/Casadi/SX.hs view
@@ -151,6 +151,8 @@ {-# NOINLINE cmax #-} cmin x y = unsafePerformIO (C.casadi_min__1 x y) {-# NOINLINE cmin #-}+ repmat x (s1, s2) = unsafePerformIO (C.casadi_repmat__2 x s1 s2)+ {-# NOINLINE repmat #-} instance Num SX where