eigensort | R Documentation |
eigensort
performs the spectral decomposition of a symmetric matrix. The eigenvalues and eigenvectors are sorted in increasing order by eigenvalues.
eigensort(M)
M |
Symmetric matrix, either sparse or dense, to be decomposed. |
A list containing:
evalues
: A vector of sorted eigenvalues in increasing order.
evectors
: A matrix of corresponding eigenvectors.
A <- matrix(1, ncol=2, nrow=2)
dec <- eigensort(A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.