klyn.math.NDArray.reshape
method
public reshape(shape as IList<Int>) as NDArray<T>:
DescriptionReshapes the NDArray to the specified shape.
a = NDArray<Int>.fromList([1, 2, 3, 4])
b = a.reshape([2, 2])
ReturnsA new reshaped NDArray. ``` a = NDArray<Int>.fromList([1, 2, 3, 4]) b = a.reshape([2, 2]) ```