spdiags | R Documentation |
Creates a sparse representation of multiple diagonal matrix
spdiags(A, d, m, n)
A |
matrix where columns correspond to the desired diagonals |
d |
indices of the diagonals to be filled in. 0 is main diagonal. -1 is first subdiagonal and +1 is first superdiagonal. |
m |
row dim |
n |
col dim |
sparse diagonal matrix of class 'dgcMatrix'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.