dpnp.dpnp_array.dpnp_array.reshape
method
- dpnp_array.reshape(*shape, order='C', copy=None)[source]
Returns an array containing the same data with a new shape.
Refer to
dpnp.reshapefor full documentation.- Returns:
y -- This will be a new view object if possible; otherwise, it will be a copy.
- Return type:
dpnp.ndarray
See also
dpnp.reshapeEquivalent function.
Notes
Unlike the free function dpnp.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)).