I have a 35040x60 array and want to calculate the average of every 4 values, so that I get a 35040x15 array.
My code so far:
However, as you can imagine, the performance is horrible.
How to improve it?
Thanks in advance!