Seol mar théacs é seo: Chordal and factor-width decompositions for scalable semidefinite and polynomial optimization