Skip to content

eig

builtin · libnexusinterp/corefcn/eig-proprietary.cc

: e = eig (A)
: [V, D] = eig (A)
: [V, D, W] = eig (A)
: e = eig (A, B)
: […] = eig (…, opt)

Compute eigenvalues and eigenvectors.

eig (A) returns the eigenvalues of the square matrix A. With two outputs, the columns of V are right eigenvectors and D holds the eigenvalues, so that A*V = V*D. A third output gives left eigenvectors with W'*A = D*W'.

eig (A, B) solves the generalized problem A*V = B*V*D.

Options (strings, any order after the matrices): "vector", "matrix", "balance", "nobalance", "chol" and "qz".