You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / lib / _arraypad_impl / _get_edges

function

numpy.lib._arraypad_impl:_get_edges

source: /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