Navigation

Operators and Keywords

Function List:

C++ API

: c = condeig (a)
: [v, lambda, c] = condeig (a)

Compute condition numbers of a matrix with respect to eigenvalues.

The condition numbers are the reciprocals of the cosines of the angles between the left and right eigenvectors; Large values indicate that the matrix has multiple distinct eigenvalues.

The input a must be a square numeric matrix.

The outputs are:

  • c is a vector of condition numbers for the eigenvalues of a.
  • v is the matrix of right eigenvectors of a. The result is equivalent to calling [v, lambda] = eig (a).
  • lambda is the diagonal matrix of eigenvalues of a. The result is equivalent to calling [v, lambda] = eig (a).

Example

a = [1, 2; 3, 4];
c = condeig (a)
⇒ [1.0150; 1.0150]

See also: eig, cond, balance.

Package: octave