dpnp.ravel
- dpnp.ravel(x1, order='C')[source]
Return a contiguous flattened array.
For full documentation refer to
numpy.ravel
.Limitations
Input array is supported as
dpnp.ndarray
. Otherwise the function will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.Examples
>>> import dpnp as np >>> x = np.array([[1, 2, 3], [4, 5, 6]]) >>> out = np.ravel(x) >>> [i for i in out] [1, 2, 3, 4, 5, 6]