jkDimSum
takes a three dimensional integer vector, fixes the value
of the first dimension, and then sums the values of all the
entries in the vector with that value for its first dimension.
1  jk_dim_sum(n, i)

n 
A three dimensional integer vector. 
i 
An integer that is a valid index of the first dimension of

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.