I have a matrix A and I want to build a block diagonal matrix M as
A 0 ⋯ 0
0 A ⋯ 0
⋮ ⋮ ⋱ ⋮
0 0 ⋯ A
where the 0s are matrices of the same size as A filled with zeros. Is there a convenient way to do that?
In other words, is there an equivalent to Python's linalg.block_diag (from scipy)?