cupy
cupy copied to clipboard
Provide sliding_window_view
Description
CuPy provides as_strided
It'd be nice to also provide sliding_window_view which IIRC is a wrapper around as_strided. Xarray uses sliding_window_view for its "rolling" operations (similar to pandas).
Additional Information
No response
Thanks for the feedback, @dcherian! It seems numpy.lib.* things have slipped off the TODO list (#6078). PRs from anyone welcomed.