Reshape an NDArray
Returns a new NDArray with the same data but different dimensions. The total number of elements must remain the same.
array (NDArray): The array to
reshape.
shape (List[Int]): The new
dimensions.
A new array with the specified shape.
reshape(arr, [4, 1])