This wasn’t the question. I don’t want to do a full summation in one of the dimensions. I want to sum over each m elements in that dimension. One way is to split the vector into n parts to the summation for each and then gather the results into a new vector. I was wondering if there was something built-in for the sake of efficiency. PS equal parts are trivial, I am generally concerned about when the parts are unequal.