reshape

Reshape an NDArray

Returns a new NDArray with the same data but different dimensions. The total number of elements must remain the same.

Parameters

Returns

A new array with the specified shape.

Examples

reshape(arr, [4, 1])

See Also

shape, ndarray