Home > @josh-brown/vector > eig
Uses the QR algorithm to compute the eigenvalues and eigenvectors of a matrix A
Signature:
export declare function eig<S>(A: Matrix<S>, numIterations?: number): EigenPair<S>[];|
Parameter |
Type |
Description |
|---|---|---|
|
A |
Matrix<S> |
The matrix for which to compute eigenvalues |
|
numIterations |
number |
(Optional) The number of iterations to take |
Returns:
EigenPair<S>[]
An array of eigenvalue-eigenvalue pairs