bundles / numpy 2.4.4 / 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: ndarrayEmpty-padded array.
axis: intDimension 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: ndarrayEdge values of the valid area in
paddedin the given dimension. Its shape will always matchpaddedexcept for the dimension given byaxiswhich will have a length of 1.
Aliases
numpy.lib._arraypad_impl._get_edges