Generalized and quadratic eigenvalue problems with hermitian matrices.