Generates a symmetric block matrix of size (sum(pk) x sum(pk)).
The sizes of the submatrices is defined based on pk. For each
submatrix, all entries are equal to the submatrix (block) index.
Usage
BlockMatrix(pk)
Value
A symmetric block matrix.
Arguments
pk
vector encoding the grouping structure.
See Also
Other block matrix functions:
BlockDiagonal(),
BlockStructure()