cut#

swordfish.function.cut()#

This function divides X based on the specified size or cutPositions.

Parameters:
  • X (Constant) – A scalar/vector/matrix/table.

  • size (Constant) – A positive integer that must be no greater than the size of X.

  • cutPositions (Constant) – A vector with increasing elements, which is used to specify the starting position of each vector in the result.

Returns:

A tuple.

Return type:

Constant