MakeSym | R Documentation |
Make a symmetric matrix by specifying a near-symmetric matrix M, or the lower triangular elements lowerTri with diagonal.
MakeSym(M, lowerTri, doubleDiag = FALSE)
M |
A near-symmetric matrix |
lowerTri |
A vector containing the lower triangular elements of the matrix. This is an alternative way to specify the matrix. |
doubleDiag |
Only meaningful for lowerTri is not missing. Whether the diagonal elements should be multiplied by sqrt(2) for doubling the squared norm of the lower triangle |
A symmetric matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.