block_diag {spectralGraphTopology} | R Documentation |
Constructs a block diagonal matrix from a list of square matrices
block_diag(...)
... |
list of matrices or individual matrices |
block diagonal matrix
library(spectralGraphTopology)
X <- L(c(1, 0, 1))
Y <- L(c(1, 0, 1, 0, 0, 1))
B <- block_diag(X, Y)
B