This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / lib / _arraypad_impl / _get_edges

function

numpy.lib._arraypad_impl:_get_edges

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_arraypad_impl.py :155

Signature

def   _get_edges ( padded axis width_pair )

Summary

Retrieve edge values from empty-padded array in given dimension.

Parameters

padded : ndarray

Empty-padded array.

axis : int

Dimension in which the edges are considered.

width_pair : (int, int)

Pair of widths that mark the pad area on both sides in the given dimension.

Returns

left_edge, right_edge : ndarray

Edge values of the valid area in padded in the given dimension. Its shape will always match padded except for the dimension given by axis which will have a length of 1.

Aliases

  • numpy.lib._arraypad_impl._get_edges