View source: R/block_structure.R
BlockDiagonal | R Documentation |
Generates a binary block diagonal matrix.
BlockDiagonal(pk)
pk |
vector encoding the grouping structure. |
A binary block diagonal matrix.
Other block matrix functions:
BlockMatrix()
,
BlockStructure()
# Example 1
BlockDiagonal(pk = c(2, 3))
# Example 2
BlockDiagonal(pk = c(2, 3, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.