dpnp.copy
- dpnp.copy(x1, order='K', subok=False)[source]
Return an array copy of the given object.
For full documentation refer to
numpy.copy
.Limitations
Parameter
order
is supported only with default value"C"
. Parametersubok
is supported only with default valueFalse
.Examples
>>> import dpnp as np >>> x = np.array([1, 2, 3]) >>> y = x >>> z = np.copy(x) >>> x[0] = 10 >>> x[0] == y[0] True >>> x[0] == z[0] False