7.5.36.39. reshape¶
- Array.reshape(shape, order='C')[source]
Returns an array containing the same data with a new shape.
Refer to numpy.reshape for full documentation.
7.5.36.39. See Also¶
numpy.reshape : equivalent function
7.5.36.39. Notes¶
Unlike the free function numpy.reshape, this method on ndarray allows the elements of the shape parameter to be passed in as separate arguments. For example,
a.reshape(10, 11)
is equivalent toa.reshape((10, 11))
.