Convex matrix equations