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 / meta_namespace

function

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

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

Signature

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

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