Solutions to a quadratic inverse eigenvalue problem