blockdiag: Combine matrices to block diagonal structure

View source: R/blockdiag.R

blockdiagR Documentation

Combine matrices to block diagonal structure

Description

Combine matrices to block diagonal structure

Usage

blockdiag(x, ..., pad = 0)

Arguments

x

Matrix

...

Additional matrices

pad

Vyalue outside block-diagonal

Author(s)

Klaus K. Holst

Examples

A <- diag(3)+1
blockdiag(A,A,A,pad=NA)

kkholst/lava documentation built on Feb. 22, 2024, 4:07 p.m.