bundles / numpy 2.4.3 / numpy / lib / _arraypad_impl / _set_reflect_both
function
numpy.lib._arraypad_impl:_set_reflect_both
source: /numpy/lib/_arraypad_impl.py:297
Signature
def _set_reflect_both(padded, axis, width_pair, method, original_period, include_edge = False)Summary
Pad axis of arr with reflection.
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.
method: strControls method of reflection; options are 'even' or 'odd'.
original_period: intOriginal length of data on
axisofarr.include_edge: boolIf true, edge value is included in reflection, otherwise the edge value forms the symmetric axis to the reflection.
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_reflect_both