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 - orderis supported only with default value- "C". Parameter- subokis supported only with default value- False.- 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