Skip to content

Glossary: Linear Algebra for ML

np.linalg.eigh

Also written: eigh, np.linalg.eig, Hermitian

The NumPy function that returns a symmetric matrix's eigenvalues (smallest first) and unit eigenvectors as columns. The h is for Hermitian, a mathematician's term that includes symmetric; `eig` handles other matrices but may return complex numbers.

Where the book teaches it

Related terms

EigenvectorSymmetric matrix