bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _batched_linalg / _bandwidth
built-in
scipy.linalg._batched_linalg:_bandwidth
Signature
built-in
_bandwidth(a, /)Summary
Compute the lower and upper bandwidth of a 2D array.
Extended Summary
Scans the array for the outermost nonzero entries below and above the main diagonal. For C- or F-contiguous arrays an AVX2-accelerated path is used when available; non-contiguous arrays fall back to a strided scalar scan.
Parameters
a: (N, M) ndarrayInput array of type float32, float64, complex64, or complex128.
Returns
lower: intLower bandwidth. 0 means no subdiagonal entries, N-1 means full.
upper: intUpper bandwidth. 0 means no superdiagonal entries, M-1 means full.
Aliases
scipy.linalg._batched_linalg._bandwidth