At the risk of this question being off topic, does anybody know if there's a technical term for the process of summing adjacent elements of an array (or matrix). Like this:
[1,2,3,4,5,6,7,8]
[3,7,11,15]
[10,26]
[36]
In other words, if was going to make a function that did this, what would it be called?
Here's an example with a matrix:
[[1,2,3,4],
[5,6,7,8],
[9,10,11,12],
[13,14,15,16]]
[[14, 22],
[46, 54]]
[[136]]
Is there a specific term for each iteration of this process?