array
- class array(dim=0)[source]
Class used to save arrays with symbolic or numeric values.
The symbolic entries are provided by CasADi and will be transformed automatically to numeric values of numpy type if it is posiible.
- Parameters:
dim (int, tuple, cas.MX, cas.SX, cas.DM, list or numpy.ndarray, optional) – Dimension of which an empty array is created or object from which the entries and dimension are copied. The default is 0.
Attributes
Array containing all entries.
Transposed array.
Dimension of the array.
True if array has symbolic entries, False otherwise.
Methods
Fill all entries with one value.
Flat array to one dimension.
Transpose array.