BlockMatrix {statespacer} | R Documentation |
Creates a block diagonal matrix with its arguments as the blocks.
BlockMatrix(A = NULL, ...)
A |
The first block matrix to be put on the diagonal. |
... |
Other block matrices that should be put on the diagonal. |
BlockMatrix()
tries to coerce its arguments to a matrix,
using as.matrix
.
Block diagonal matrix consisting of the specified matrices.
Dylan Beijers, dylanbeijers@gmail.com
BlockMatrix(diag(ceiling(50 * stats::runif(5))), matrix(1:8, 4, 2), c(14,8))