Description Usage Arguments Examples
Creates a sparse diagonal matrix of length(xx) where xx is the vector containing the elements on the diagonal
1 | sparsediag(xx)
|
xx |
diagonal vector |
1 2 | require(Matrix)
Q <- sparsediag(c(1,2,3,4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.