powered by
Code for function provided in examples of bdiag function from Matrix package
bdiag_m(lmat)
A sparse matrix obtained by combining the arguments into a block diagonal matrix
List of matrices
Construct block diagonal matrix of many small blocks