powered by
Generates a binary block diagonal matrix.
BlockDiagonal(pk)
A binary block diagonal matrix.
vector encoding the grouping structure.
Other block matrix functions: BlockMatrix(), BlockStructure()
BlockMatrix()
BlockStructure()
# Example 1 BlockDiagonal(pk = c(2, 3)) # Example 2 BlockDiagonal(pk = c(2, 3, 2))
Run the code above in your browser using DataLab