Description Usage Arguments Value Examples
Convert a sparse triangle matrix to a sparse symmetric matrix.
1 | triangle_to_sym(trimat)
|
trimat |
A triangular sparse matrix (either upper or lower triangle can be filled). |
A symmetric sparse matrix.
1 2 | triangleMatrix <- Matrix::Matrix(c(1,0,0,2,5,0,1,0,0), 3, sparse = T)
symmMatrix <- triangle_to_sym(triangleMatrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.