This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_extra / testing / _as_numpy_array

function

scipy._external.array_api_extra.testing:_as_numpy_array

source: build-install/usr/lib/python3.14/site-packages/scipy/_external/array_api_extra/testing.py:683

Signature

def _as_numpy_array(array: Array, *, xp: ArrayNamespace) → np.typing.NDArray[Any]

Summary

Convert array to NumPy, bypassing GPU-CPU transfer guards and densification guards.

Aliases

  • scipy.differentiate.xpx.testing._as_numpy_array