dblocklist | R Documentation |
Given a matrix and the size of a block, returns a list containing all diagonal submatrices made by blocks.
dblocklist(mat, block)
mat |
numeric matrix |
block |
Integer vector of length 2, containing the size of the block (rows, columns). If only one integer is passed, the block is square |
A list of diangonal submatrices made by blocks
mat <- matrix(1:64, nrow = 8, byrow = TRUE)
mat
dblocklist(mat, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.