bdMatrix: Constructor for block diagonal matrices

Description Usage Arguments Examples

Description

Constructor for block diagonal matrices

Usage

1
bdMatrix(listOfBlocks)

Arguments

listOfBlocks

a list of matrices or numeric vectors, which represent the blocks in the given order

Examples

1
2
3
4
## construct a bdMatrix
bdMatrix(listOfBlocks = list(matrix(1:4, 2), diag(3)))
## see what the whole matrix looks like by using Matrix::bdiag of the list elements
bdiag(bdMatrix(listOfBlocks = list(matrix(1:4, 2), diag(3)))@listOfBlocks)

davidruegamer/effortless documentation built on May 15, 2019, 1:15 a.m.