Original ticket http://projects.scipy.org/numpy/ticket/901 on 2008-08-31 by @cournape, assigned to @charris.
A patch to have segment_axis (contributed by Anne Archibald I believe) in numpy with tests. It uses as_strided
Attachment added by @cournape on 2008-08-31: segmentaxis.py
Attachment added by @cournape on 2008-08-31: test_segmentaxis.py
Will this ever be merged? If there is a problem with it, is there something that I could do to help move it along ?
+1, very useful and I'd love to see this merged.
@jeremyherbert see also #31
I think we can add something like this. The details need to be hashed out. Like my version has arbitrary dimensions, but no padding. And some of the design choices need to be cleaned up. If you have the patience, please feel do try to figure out what you think is the right functionality/features for such a function.
Then open a pull request and notifying the mailing list for some discussion (in whichever order) and we can get this going.