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 from casadi import *
28 from numpy import *
29 
30 A = MX.sym("A",2)
31 B = MX.sym("B",2,1)
32 C = MX.sym("C")
33 D = MX.sym("D",Sparsity.lower(4))
34 
35 
36 L = veccat(A,B,C,D)
37 print(L)