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

function

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

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

Signature

def normalize_pad_width(pad_width: int | tuple[int, int] | Sequence[tuple[int, int]], ndim: int) → list[tuple[int, int]]

Summary

Normalize pad_width to a list of ndim (before, after) pairs of ints.

Aliases

  • scipy.differentiate.xpx._delegation.normalize_pad_width