### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Linear algebra (`scipy.linalg`) »

# scipy.linalg.eigvals

`scipy.linalg.``eigvals`(a, b=None, overwrite_a=0)

  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, shape (M, M) A complex or real matrix whose eigenvalues and eigenvectors will be computed. b : array, shape (M, M) Right-hand side matrix in a generalized eigenvalue problem. If omitted, identity matrix is assumed. overwrite_a : boolean Whether to overwrite data in a (may improve performance)
  Returns: | w : double or complex array, shape (M,) The eigenvalues, each repeated according to its multiplicity, but not in any specific order. Raises LinAlgError if eigenvalue computation does not converge :

  See also

  `eigvalsh`
    eigenvalues of symmetric or Hemitiean arrays
  `eig`
    eigenvalues and right eigenvectors of general arrays
  `eigh`
    eigenvalues and eigenvectors of symmetric/Hermitean arrays.

### Navigation

- index
- modules |
- next |
- previous |
- SciPy v0.7 Reference Guide (DRAFT) »
- Linear algebra (`scipy.linalg`) »