block_diag {spectralGraphTopology}R Documentation

Constructs a block diagonal matrix from a list of square matrices

Description

Constructs a block diagonal matrix from a list of square matrices

Usage

block_diag(...)

Arguments

...

list of matrices or individual matrices

Value

block diagonal matrix

Examples

library(spectralGraphTopology)
X <- L(c(1, 0, 1))
Y <- L(c(1, 0, 1, 0, 0, 1))
B <- block_diag(X, Y)
B

[Package spectralGraphTopology version 0.2.3 Index]