Description Usage Arguments Value Examples
Extracts those diagonal blocks from a given blockmatrix
1  |   get_diag(x)
 | 
x | 
 a blockmatrix  | 
a block diagonal matrix
1 2 3 4 5 6  | # create a blockmatrix
bv = blockvector(1:5, parts=c(2, 3))
B = bv %*o% bv
# blockmatrix with blocks in diagonal
get_diag(B)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.