tridiag | R Documentation |
Create a sparse tridiagonal matrix of dgcMatrix class.
tridiag(n, x = NULL, y = NULL, z = NULL)
n |
dimension of the square matrix |
x |
subdiagonal (-1) |
y |
diagonal (0) |
z |
superdiagonal (+1) |
Sparse tridiagonal matrix of class 'dgcMatrix'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.