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 / _lib / _utils / _helpers / capabilities

function

scipy._external.array_api_extra._lib._utils._helpers:capabilities

source: build-install/usr/lib/python3.14/site-packages/scipy/_external/array_api_extra/_lib/_utils/_helpers.py:311

Signature

def capabilities(xp: ArrayNamespace, *, device: Device | None = None) → dict[str, int | None]

Summary

Return patched xp.__array_namespace_info__().capabilities().

Extended Summary

TODO this helper should be eventually removed once all the special cases it handles are fixed in the respective backends.

Parameters

xp : array_namespace

The standard-compatible namespace.

device : Device, optional

The device to use.

Returns

: dict

Capabilities of the namespace.

Aliases

  • scipy.differentiate.xpx._delegation.capabilities