I was wondering if there is an easy way to assemble matrices along the diagonal in python, adding values if they overlap. Here is a handy diagram I stole from the Matlab forum: https://i.stack.imgur.com/ZunrZ.jpg
Currently, I am trying to implement it to work with a set number of 2x2 matrices, but the end goal is to make the code assemble an arbitrary amount of arbitrary sized matrices(all the same size ofc., max 4x4).