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