bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_extra / _lib / _utils / _helpers / eager_shape
function
scipy._external.array_api_extra._lib._utils._helpers:eager_shape
Signature
def eager_shape(x: Array, /, axis: int | None = None) → tuple[int, ...]Summary
Return shape of an array. Raise if shape is not fully defined.
Parameters
x: ArrayInput array.
axis: int, optionalIf provided, only returns the tuple (shape[axis],).
Returns
: tuple[int, ...]Shape of the array.
Aliases
scipy.differentiate.xpx._delegation.eager_shape