Simplifying HermitianEig implementation by combining real and complex versions.