Eigendecomposition · A = P D P⁻¹
P's columns are the eigenvectors; D's diagonal holds the eigenvalues. Edit A.
A = P D P⁻¹