pub fn windowed(
shape: &[usize],
axes: &[WindowAxis],
) -> Result<Vec<usize>, Error>Expand description
The lengths of the windows of shape that axes give along its leading axes: the number of windows along each of those axes, then a window’s lengths. Along an axis of length n, ⌊(n-size)÷step⌋+1 windows fit, or none where size is longer. A padded window is centred on each position, which gives ⌈(n-[size even])÷step⌉ windows. Its size must be less than twice the length of an axis that isn’t empty.