Add a docstring.  I don't know what this function is supposed to do: compute the cumsum over each tile?

This seems rather arbitrary.