Compute vector of indices for efficient access to diagonal of a square matrix
integer dimension of (square) matrix
integer vector of length n with indices (unidimensional) of square matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.