scipy.linalg.eigvals

scipy.linalg.eigvals(a, b=None, overwrite_a=False)[source]

Compute eigenvalues from an ordinary or generalized eigenvalue problem.

Find eigenvalues of a general matrix:

a   vr[:,i] = w[i]        b   vr[:,i]
Parameters :

a : array_like, shape (M, M)

A complex or real matrix whose eigenvalues and eigenvectors will be computed.

b : array_like, shape (M, M), optional

Right-hand side matrix in a generalized eigenvalue problem. If omitted, identity matrix is assumed.

overwrite_a : boolean, optional

Whether to overwrite data in a (may improve performance)

Returns :

w : double or complex ndarray, shape (M,)

The eigenvalues, each repeated according to its multiplicity, but not in any specific order. Of shape (M,).

Raises :

LinAlgError :

If eigenvalue computation does not converge

See also

eigvalsh
eigenvalues of symmetric or Hermitian arrays,
eig
eigenvalues and right eigenvectors of general arrays.
eigh
eigenvalues and eigenvectors of symmetric/Hermitian arrays.

Previous topic

scipy.linalg.eig

Next topic

scipy.linalg.eigh