Welcome to our Support Center

Array Subset

Description

Returns a portion of array starting at index and containing length elements.

Warning : A new tensor is created for the output.

 

Input parameters

 

array : class, n-dimensional tensor.
index : array, specifies the first element, row, column, or page to include in the portion of array you want to return. The shape of this entry must be equal to the shape of the array tensor.Β 
length : array, specifies how many elements, rows, columns, or pages to include in the portion of array you want to return. The shape of this entry must be equal to the shape of the array tensor. The default (-1) is the length from index to the end of array.Β 

Output parameters

 

subarrayΒ : class, n-dimensional tensor that returns a portion of the input tensor.

Example

All these exemples 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 PERRINE library to run it).

Table of Contents
Index