If the matrices $A$ and $B$ are positive semidefinite, is the scalar field $$ X \mapsto \mbox{tr} \left( X A X^T B \right) $$ always convex? I get an error when I put this in CVX even though I double-checked that $A$ and $B$ do not have negative eigenvalues.
Related: Is the function $X \mapsto \mbox{trace} \left( X X^T \right)$ convex?