https://travelebookdownload.blogspot.com/2024/08/numpy-sum-between-pairs-of-indices-in.html
Numpy Sum Between Pairs Of Indices In 2d Array