segment_axis (Trac #901) #1499

Open
numpy-gitbot opened this Issue Oct 19, 2012 · 6 comments

Projects

None yet

6 participants

@numpy-gitbot
Collaborator

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

@numpy-gitbot
Collaborator

Attachment added by @cournape on 2008-08-31: segmentaxis.py

@numpy-gitbot
Collaborator

Attachment added by @cournape on 2008-08-31: test_segmentaxis.py

@charris charris added Patch labels Feb 18, 2014
@jeremyherbert

Will this ever be merged? If there is a problem with it, is there something that I could do to help move it along ?

@roger-
roger- commented Aug 31, 2015

+1, very useful and I'd love to see this merged.

@seberg
Member
seberg commented Aug 31, 2015

@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.

@dashesy
dashesy commented Jan 7, 2016

This is very useful! I hoped nditer would do something like this but it cannot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment