vectorized the SDPs