blockdiag: Construct a block-diagonal matrix.

Description Usage Arguments Value Examples

View source: R/linpk.R

Description

Construct a block-diagonal matrix.

Usage

1

Arguments

...

Any number of square matrices making up the diagonal blocks of the matrix.

Value

A block-diagonal matrix.

Examples

1
blockdiag(matrix(1, 2, 2), 2, matrix(3, 4, 4))

linpk documentation built on June 12, 2018, 5:04 p.m.