bundles / scipy 1.17.1 / 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_namespaceThe standard-compatible namespace.
device: Device, optionalThe device to use.
Returns
: dictCapabilities of the namespace.
Aliases
-
scipy.differentiate.xpx._delegation._funcs.capabilities