block_diag: Constructs a block diagonal matrix from a list of square...

View source: R/utils.R

block_diagR 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

spectralGraphTopology documentation built on March 18, 2022, 7:35 p.m.