blockDiag: Compute a block diagonal matrix w/ constant blocks

Description Usage Arguments

View source: R/helper_functions.R

Description

The function returns kronecker(diag(nrep), Amat), but is computed more efficiently

Usage

1
blockDiag(Amat, nrep)

Arguments

Amat

matrix to populate the diagaonal blocks

nrep

number of blocks on the diagonal


drkowal/dfosr documentation built on May 7, 2020, 3:09 p.m.