This example looks at the ssym method
View output (PDF) | source (python)
- See also
static Matrix< Scalar > sym(const std::string &name, casadi_int nrow=1, casadi_int ncol=1)
Create an nrow-by-ncol symbolic primitive.
40 print(SX.sym(
"x",2,1))
44 print(SX.sym(
"x",1,2))
48 print(SX.sym(
"x",2,3))