eigs {ConnMatTools} | R Documentation |
Compute some eigenvalues of a matrix
Description
This function computes a limited number of eigenvalues and eigenvectors of a
matrix. It uses arpack
function from the
igraph package. If this package is not available, it will use
the standard eigen
function to do the calculation, but will
issue a warning.
Usage
eigs(
M,
nev = min(dim(M)[1] - 1, 1),
sym = sum(abs(M - t(M)))/sum(abs(M)) < 1e-10,
which = "LM",
use.arpack = TRUE,
options.arpack = NULL
)
Arguments
M |
a matrix. |
nev |
number of eigenvalues and eigenvectors to return |
sym |
A boolean indicating if matrix is symmetric or not. Defaults to checking if this is the case or not. |
which |
A character string indicating which eigenvalues to return.
Defaults to "LM", meaning largest magnitude eigenvalues. If not using
|
use.arpack |
Boolean determining if calculation is to be done with
|
options.arpack |
Additional options for |
Value
A list with at least the following two items:
values |
A set of eigenvalues |
vectors |
A matrix of eigenvectors |
Author(s)
David M. Kaplan dmkaplan2000@gmail.com
See Also
See also arpack