Create a block-diagonal matrix of ones.
bdsBlock(id, group)
a block-diagonal matrix of class bdsmatrix
the identifier list. This will become the dimnames of the final matrix, and must be a set of unique values. It's length determines the dimension of the final matrix
a vector giving the grouping structure. All rows/cols belonging to a given group will form a block of 1's in the final matrix.
bdsmatrix, bdsI