csnlp.util.math.repeat#

csnlp.util.math.repeat(a, repeats)[source]#

Repeats elements in array.

Parameters:
acasadi.SX or MX or DM

The array/matrix whose elements are to be repeated.

repeatsint or tuple of 2 ints

The number of repeats, in the first and/or second axis.

Returns:
casadi.SX, MX or DM

Output array with repeated elements.

Return type:

Union[SX, MX, DM]