Description Usage Arguments Value Note Examples
The function implements the power algorithm for EVD.
Function eigenPowerRcpp.
Function eigenPowerRcppEigen.
Function eigenPowerRcppParallel.
Function eigenPowerEigenParallel.
1 2 3 4 5 6 7 8 9 10 11 12 13 | eigenPower(A, v0, tol = 1e-06, maxit = 1000, sparse = FALSE,
sparseSymm = FALSE, ncomp = 1, verbose = 0)
eigenPowerRcpp(A, v0, tol = 1e-06, maxit = 1000, mode = 1, verbose = 0)
eigenPowerRcppEigen(A, v0, tol = 1e-06, maxit = 1000, ncomp = 1,
symmetric = FALSE, verbose = 0)
eigenPowerRcppParallel(A, v0, tol = 1e-06, maxit = 1000, cores = -1,
chunkSize = 1, verbose = 0)
eigenPowerEigenParallel(A, v0, tol = 1e-06, maxit = 1000, cores = -1,
chunkSize = 1, verbose = 0)
|
A |
A two-dimensional square matrix, either of |
v0 |
A numeric vector; the initial guess for eignevector. If it is missing, a random vector is generated. |
tol |
The tolerance threshold used to stop when reaching no improvement if estmiation of eigenvalue.
The default value is |
maxit |
The maximum number of iterations.
The default value is |
sparse |
The boolean value, whether to convert the input |
sparseSymm |
The boolean value, whether to convert the input |
ncomp |
The number of eigenvectors to be extracted.
The default value is |
verbose |
The integer value indicating the verbose level.
The default value is |
mode |
An integer indicating the mode of implementation (for |
symmetric |
A logical which value says explicetly if the input matrix |
cores |
The number of cores (for parallel versions).
The default value is |
chunkSize |
The minimal size of a chunk (for parallel versions).
The default value is |
A list several slots: v
the first eigenvector;
lambda
the first eigenvalue; etc.
This function is inspired by the post http://blogs.sas.com/content/iml/2012/05/09/the-power-method.html.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.