bundles / numpy 2.4.4 / numpy / lib / _arraypad_impl / _set_wrap_both
function
numpy.lib._arraypad_impl:_set_wrap_both
Signature
def _set_wrap_both ( padded , axis , width_pair , original_period ) Summary
Pad axis of arr with wrapped values.
Parameters
padded: ndarrayInput array of arbitrary shape.
axis: intAxis along which to pad
arr.width_pair: (int, int)Pair of widths that mark the pad area on both sides in the given dimension.
original_period: intOriginal length of data on
axisofarr.
Returns
pad_amt: tuple of ints, length 2New index positions of padding to do along the
axis. If these are both 0, padding is done in this dimension.
Aliases
-
numpy.lib._arraypad_impl._set_wrap_both