public API
(
switch to internal
)
-
revision 3.8.0
MX/veccat.py
This example looks at the veccat method
View
output (PDF)
|
source (python)
See also
casadi::veccat();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import
casadi
as
ca
28
from
numpy
import
*
29
30
A = ca.MX.sym(
"A"
,2)
31
B = ca.MX.sym(
"B"
,2,1)
32
C = ca.MX.sym(
"C"
)
33
D = ca.MX.sym(
"D"
,ca.Sparsity.lower(4))
34
35
36
L = ca.veccat(A,B,C,D)
37
print(L)