public reshape(notnull shape as IList<Int>) as NDArray<T>
Reshapes the NDArray to the specified shape.
shape
A new reshaped NDArray.
a = NDArray<Int>([1, 2, 3, 4]) b = a.reshape([2, 2])