concatenate

concatenate(arrays, axis=0)[source]

Join a sequence of arrays along an existing axis.

Parameters:
  • arrays (tuple of casadi.MX, casadi.SX, casadi.DM or numpy.ndarrays) – Sequence of arrays which will be concatenated. The arrays must have the same shape, except in the dimension corresponding to axis.

  • axis (int, optional) – The axis along which the arrays will be joined. The default is 0.

Returns:

The concatenated array.

Return type:

array