numpy.lib.stride_tricks#

操作步长以实现所需效果的实用程序.

有关步长的解释,请参见 N 维数组 ( ndarray ) .

函数

as_strided (x[, shape, strides, subok, writeable])

使用给定的形状和步长创建数组的视图.

sliding_window_view (x, window_shape[, axis, ...])

使用给定的窗口形状创建数组的滑动窗口视图.