the eigenvalues of and classify: SPD, PSD, or indefinite