Description Usage Arguments Value References See Also Examples
View source: R/selected_eigenvalues.R
Computes eigenvalues and eigenvectors of numeric matrices.
1 | selected_eigenvalues(x,min_eigenvalue = 1e-10)
|
x |
a numeric or complex matrix whose spectral decomposition is to be computed. Logical matrices are coerced to numeric. |
min_eigenvalue |
smallest eigen_value to compute. |
The spectral decomposition of x
is returned as components of a
list with components
values |
a vector containing the p eigenvalues of |
vectors |
a p * p matrix whose columns
contain the eigenvectors of Recall that the eigenvectors are only defined up to a constant: even when the length is specified they are still only defined up to a scalar of modulus one (the sign for real matrices). |
Anderson. E. and ten others (1999)
LAPACK Users' Guide. Third Edition. SIAM.
Available on-line at
http://www.netlib.org/lapack/lug/lapack_lug.html.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole. Springer-Verlag Lecture Notes in Computer Science 6.
Wilkinson, J. H. (1965) The Algebraic Eigenvalue Problem. Clarendon Press, Oxford.
svd
, a generalization of eigen
; qr
, and
chol
for related decompositions.
To compute the determinant of a matrix, the qr
decomposition is much more efficient: det
.
1 2 3 4 5 6 7 8 9 | ## Not run:
library(BGLR)
library(BGLRutils)
data(wheat)
out=selected_eigenvalues(wheat.A,min_eigenvalue=1e-5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.