Re: [Numpy-discussion] subsampling arrays without loops

2013-10-03 Thread Jaime Fernández del Río
On Thu, Oct 3, 2013 at 4:05 PM, Moroney, Catherine M (398D) < catherine.m.moro...@jpl.nasa.gov> wrote: > I know I have a lot yet to learn about array striding tricks, so please > pardon the triviality of this question. > > Here is the problem both in words and "dumb" python: > > I have a large NxM

[Numpy-discussion] subsampling arrays without loops

2013-10-03 Thread Moroney, Catherine M (398D)
I know I have a lot yet to learn about array striding tricks, so please pardon the triviality of this question. Here is the problem both in words and "dumb" python: I have a large NxM array that I want to break down into smaller nxn chunks where n divides evenly into both N and M. Then I want to