numpy.lib.stride_tricks

Standard library module View source
function as_strided
as_strided(x, shape = None, strides = None, writeable: bool = True)
function sliding_window_view
sliding_window_view(x, window_shape, axis = None, writeable: bool = False)