Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 2.32 KB

File metadata and controls

49 lines (38 loc) · 2.32 KB

Split 2D Array

Description

Divides array at index and returns the two portions with the element of index at the beginning of second subarray.

Warning : Two new tensors is created for the outputs.

Split_2D_Array.Png

Input parameters

Input_Tensor.Png array : class, two-dimentional tensor.
Input_Interger_32.Png index : integer, if index is negative or 0, first subarray is empty. If index is equal to or greater than the size of array, second subarray is empty.
Input_Boolean.Png split_on_row ? : boolean, if true, performs division on rows, otherwise on columns.

Output parameters

Output_Tensor.Png first subarray : class, contains array[0] through array[index-1].
Output_Tensor.Png second subarray : class, contains the remaining array elements not already contained in first subarray.

Examples

All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Accelerator library to run it).

ex_split_2d_array