Table Of Contents

Reshape Array (G Dataflow)

Last Modified: January 9, 2017

Changes the dimensions of an array according to a specified dimension size.

This node reads the array data in memory from left to right, row by row and populates the reshaped array the same way. For example, if you pass a 2D array of 8 elements, 2 columns of {0,1,2,3}, to this node with two dimensions defined with sizes of 2 and 4, respectively, the node returns an array containing {{0,0,1,1}, {2,2,3,3}}.

connector_pane_image
datatype_icon

array

An n-dimensional array of any type.

datatype_icon

dimension size

New size for a single dimension of array.

The node creates an empty array if any dimension size is 0. You must have m dimension size inputs for m-dimensions.

Default: 0

datatype_icon

output array

The array reshaped with dimension size.

If the product of the dimension sizes is greater than the number of elements in the input array, the node pads the new array with the default of the data type of array. If the product of the dimension sizes is less than the number of elements in the input array, the node truncates the array.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported


Recently Viewed Topics