Description Usage Arguments Value See Also Examples
Compute vector of indices for efficient access to diagonal of a square matrix
| 1 | diag_ind(n)
 | 
| n | integer dimension of (square) matrix | 
integer vector of length n with indices (unidimensional) of square matrix
| 1 2 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.