dpnp.dpnp_array.dpnp_array.reshape¶
method
- dpnp_array.reshape(*shape, order='C', copy=None)[source]¶
Return a reshaped array without changing data.
Refer to
dpnp.reshapefor full documentation.- Returns:
- ydpnp.ndarray
This will be a new view object if possible; otherwise, it will be a copy.
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)).