strided_array#

overlappy.util.strided_array(array, N, **kwargs)[source]#

Return a “strided” version of the array.

For an array of shape (N_2, N_1), this function creates an array of dimension (N, N_2, N_1) where each layer is a view of the original array. In other words, the values at (k,i,j) and (k+1,i,j) point to the same place in memory.