powered by
This function creates a square bloc-diagonal matrix from a list of square blocs.
blocDiag(blocs)
A square matrix.
list, each element is a square matrix.
blocDiag(list(1,cbind(c(1,2),c(3,4)),25))
Run the code above in your browser using DataLab