Split

Node Icon

Split a Numeric Array or Boolean Array along a specific dimension into blocks of a predefined size, and return result as a list.

Example 1 Return all slices of a 3D array in a list:
Split Along: 2, Block Size: 1

Example 2 Split 4D array with [i,j,k,60] into a list with 12 elements with 5 arrays each:
Split Along: [3], Block Size: 5

Inputs

Input

Input Numeric Array or Boolean Array.

Type: Numeric Array, Boolean Array, List, Required, Single

Outputs

Output

Output Numeric Array, Boolean Array or List Of Lists.

Type: Type: Numeric Array, Boolean Array, List Of Lists, List

Settings

Split along Dimension Integer

Specify the index of the dimension which you want to split along.

Block Size Integer

Specify the block size along the split dimension.

Squeeze Boolean

Remove singleton dimensions.

See also

Keywords: