pele.utils.hessian.get_eigvals

pele.utils.hessian.get_eigvals(hess, **kwargs)[source]

return the eigenvalues of a Hessian (symmetric)

The following docs are from numpy.linalg.eigvalsh

Compute the eigenvalues of a Hermitian or real symmetric matrix.

Main difference from eigh: the eigenvectors are not computed.

Parameters :

a : array_like, shape (M, M)

A complex- or real-valued matrix whose eigenvalues are to be computed.

UPLO : {‘L’, ‘U’}, optional

Specifies whether the calculation is done with the lower triangular part of a (‘L’, default) or the upper triangular part (‘U’).

Returns :

w : ndarray, shape (M,)

The eigenvalues, not necessarily ordered, each repeated according to its multiplicity.

Raises :

LinAlgError

If the eigenvalue computation does not converge.

Previous topic

pele.utils.hessian.get_eig

Next topic

pele.utils.hessian.get_sorted_eig