spectral_radius | R Documentation |
Calculates the spectral radius of a symmetric matrix A (the largest absolute eigenvalue)
spectral_radius(A)
A |
matrix |
The spectral radius (largest absolute eigenvalue) of A
# symmetric matrix # should equal 2.5 spectral_radius(matrix(c(2, 0.5, 0.5, 2), nrow = 2, ncol = 2)) # non-symmetric matrix # should equal 10 spectral_radius(matrix(c(9, -1, 2, -2, 8, 4, 1, 1, 8), nrow = 3, ncol = 3, byrow = T))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.