I thought this problem had a trivial solution, couple of for loops and some fancy counters, but apparently it is rather more complicated.
So my question is, how woul
I would probably do something like this (apologies in advance for any index errors, haven't debugged this):
// Operation to be performed on each slice: void doSomething(const int lengthOfSlice, elementType *slice, const int stride) { for (int i=0; i