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

function

numpy.lib._arraypad_impl:_set_pad_area

source: /numpy/lib/_arraypad_impl.py :130

Signature

def   _set_pad_area ( padded axis width_pair value_pair )

Summary

Set empty-padded area in given dimension.

Parameters

padded : ndarray

Array with the pad area which is modified inplace.

axis : int

Dimension with the pad area to set.

width_pair : (int, int)

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

value_pair : tuple of scalars or ndarrays

Values inserted into the pad area on each side. It must match or be broadcastable to the shape of arr.

Aliases

  • numpy.lib._arraypad_impl._set_pad_area