Eigenvalues and eigenvectors of a square matrix. Equivalent to R's eigen().
Symmetric matrices use tridiagonalization and the implicit QL method; other matrices use Hessenberg reduction
and the Francis double-shift QR method, after balancing the matrix as LAPACK's dgebal does. R uses LAPACK, so eigenvalues agree up to rounding, but
eigenvector signs may differ from R (both are correct); for repeated eigenvalues the basis may differ.
Complex eigenvalues and eigenvectors are returned as separate real and imaginary parts (valuesIm,
vectorsIm). Each complex eigenvector is scaled to unit length with its largest component real and positive.
Throws on NaN or infinite values.
Eigenvalues and eigenvectors of a square matrix. Equivalent to R's
eigen().Symmetric matrices use tridiagonalization and the implicit QL method; other matrices use Hessenberg reduction and the Francis double-shift QR method, after balancing the matrix as LAPACK's
dgebaldoes. R uses LAPACK, so eigenvalues agree up to rounding, but eigenvector signs may differ from R (both are correct); for repeated eigenvalues the basis may differ. Complex eigenvalues and eigenvectors are returned as separate real and imaginary parts (valuesIm,vectorsIm). Each complex eigenvector is scaled to unit length with its largest component real and positive. Throws onNaNor infinite values.