Skip to content

Latest commit

 

History

History
72 lines (34 loc) · 971 Bytes

File metadata and controls

72 lines (34 loc) · 971 Bytes

Home > @josh-brown/vector > eig

eig() function

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>[];

Parameters

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