View source: R/HelperFunctions.R
create_block_diagonal | R Documentation |
Create Block Diagonal Matrix
create_block_diagonal(matrix_list)
matrix_list |
List of matrices to arrange diagonally |
Takes in a list of matrices, and returns a block-diagonal matrix with each element of the list as one block. All off-diagonal elements are 0. Matrices must have compatible dimensions.
Block diagonal matrix with input matrices on diagonal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.