{ } Raw JSON

bundles / scipy 1.17.1 / scipy / _lib / array_api_extra / _lib / _utils / _helpers / meta_namespace

function

scipy._lib.array_api_extra._lib._utils._helpers:meta_namespace

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

Signature

def   meta_namespace ( * arrays : Array | complex | None xp : ModuleType | None = None )  →  ModuleType

Summary

Get the namespace of Dask chunks.

Extended Summary

On all other backends, just return the namespace of the arrays.

Parameters

*arrays : Array | int | float | complex | bool | None

Input arrays.

xp : array_namespace, optional

The standard-compatible namespace for the input arrays. Default: infer.

Returns

: array_namespace

If xp is Dask, the namespace of the Dask chunks; otherwise, the namespace of the arrays.

Aliases

  • scipy.differentiate.xpx._delegation._funcs.meta_namespace