get_first_eigs | R Documentation |
Compute the first few eigenvalues (by magnitude) and associated eigenvectors of a matrix.
get_first_eigs(some_mat, num_eigs)
some_mat |
Matrix for which eigenvalues and eigenvectors are to be calculated. |
num_eigs |
Number of eigenvalues and eigenvectors to calculate. |
A list with two entries:
vals
contains a length-num_eigs
vector of the first few
eigenvalues,
and vects contains an nrow(some_mat)
by num_eigs
matrix
of the associated eigenvectors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.