bundles / scipy 1.18.0 / scipy / _lib / _array_api / xp_copy
function
scipy._lib._array_api:xp_copy
source: /scipy/_lib/_array_api.py:123
Signature
def xp_copy(x: Array, *, xp: ModuleType | None = None) → ArraySummary
Copies an array.
Parameters
x: arrayxp: array_namespace
Returns
copy: arrayCopied array
Notes
This copy function does not offer all the semantics of np.copy, i.e. the subok and order keywords are not used.
Aliases
scipy.differentiate.xp_copy