Welcome to our Support Center

Reshape Array

Description

Changes the dimensions of an array according to the values of dimension size 0..m-1.

Warning : A new tensor is created for the output.

 

Input parameters

 

n-dim array : class, n-dimensional tensor.
dimension_size : array, specifies the dimensions of m-dim array.

Output parameters

 

m-dim array : class, if the product of the dimension sizes is greater than the number of elements in the input array, the function pads the new array with the default of the data type of n-dim array. If the product of the dimension sizes is less than the number of elements in the input array, the function truncates the array.

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