Add a rolling_window function that takes an array and returns a view on the same array (no copying of data) such that the new view is made up of shifted copies of the original array.
This is useful for turning convolution with a filter into a dot product with the filter, without requiring any more space on disk.
Add a
rolling_window
function that takes an array and returns a view on the same array (no copying of data) such that the new view is made up of shifted copies of the original array.This is useful for turning convolution with a filter into a dot product with the filter, without requiring any more space on disk.