Description Usage Arguments Value See Also Examples
Build matrix with supplied vector on diagonal; this is much faster than diag due to the use of matrix instead of array
1 | diag_mat(x)
|
x |
numeric vector for diagonal |
matrix of size length(x) x length(x) with x along diagonal
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.