nums.numpy.reshape

nums.numpy.reshape(a, shape)[source]

Gives a new shape to an array without changing its data.

This docstring was copied from numpy.reshape.

Some inconsistencies with the NumS version may exist.

Parameters

a (BlockArray) – Array to be reshaped.

Returns

reshaped_array – This will be a new view object if possible; otherwise, it will be a copy.

Return type

BlockArray