convert
- convert(a, dtype='auto')[source]
Convert a numpy-, casadi- or nMPyC-array to another of these intances.
- Parameters
a (array, cas.MX, cas.SX, cas.DM or numpy.ndarray) – Array which should be converted.
dtype (str, optional) – Name of the class to which the array will be converted. The default is ‘auto’.
- Returns
The converted object.
- Return type
numpy.ndarray, cas.MX, cas.SX, cas.DM