bundles / numpy 2.4.3 / numpy / lib / _arraypad_impl / _view_roi
function
numpy.lib._arraypad_impl:_view_roi
source: /numpy/lib/_arraypad_impl.py :59
Signature
def _view_roi ( array , original_area_slice , axis ) Summary
Get a view of the current region of interest during iterative padding.
Extended Summary
When padding multiple dimensions iteratively corner values are unnecessarily overwritten multiple times. This function reduces the working area for the first dimensions so that corners are excluded.
Parameters
array: ndarrayThe array with the region of interest.
original_area_slice: tuple of slicesDenotes the area with original values of the unpadded array.
axis: intThe currently padded dimension assuming that
axisis padded beforeaxis+ 1.
Returns
roi: ndarrayThe region of interest of the original
array.
Aliases
-
numpy.lib._arraypad_impl._view_roi