This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / _lib / _array_api / xp_copy

function

scipy._lib._array_api:xp_copy

source: build-install/usr/lib/python3.14/site-packages/scipy/_lib/_array_api.py:133

Signature

def xp_copy(x: Array, *, xp: ModuleType | None = None) → Array

Summary

Copies an array.

Parameters

x : array
xp : array_namespace

Returns

copy : array

Copied 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