cut#

swordfish.function.cut()#

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

参数:
  • 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.

返回:

A tuple.

返回类型:

Constant