eig#

swordfish.function.eig()#

Calculate the eigenvalues and eigenvectors of A.

The result of eig is the same as the result of numpy.linalg.eigh.

Parameters:

A (Constant) – A real symmetric matrix or a Hermitian matrix.

Returns:

A dictionary.

Return type:

Constant