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 / _funcs / diag_indices

function

scipy._external.array_api_extra._lib._funcs:diag_indices

source: build-install/usr/lib/python3.14/site-packages/scipy/_external/array_api_extra/_lib/_funcs.py:331

Signature

def diag_indices(n: int, /, ndim: int, device: Device | None, xp: ArrayNamespace) → tuple[Array, ...]

Summary

See docstring in array_api_extra._delegation.

Aliases

  • scipy.differentiate.xpx._delegation._funcs.diag_indices