{ } Raw JSON

bundles / scipy latest / scipy / _lib / array_api_extra / _lib / _utils / _helpers / capabilities

function

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

source: /scipy/_lib/array_api_extra/_lib/_utils/_helpers.py :313

Signature

def   capabilities ( xp : ModuleType * 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._funcs.capabilities