This is simply the Kronecker product of the contact matrix
with a matrix of ones of dimension
the size of the secondary dimension to expand to.
a square matrix with
n*ncol(C) rows and columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.