Given real-matrix $X_{n\times p}$ how can the problem of minimizing $Tr(X^TA_{n\times n}X)$ under the constraint $Tr(X^TC)=\phi$ be posed as a standard convex quadratic program given by the form:
minimize $(1/2)x^TAx + q^Tx$ under the constraint $Mx = b$.
This is how far I got: $Tr(X^TAX)=\sum_{i=1}^nX_{i\cdot}AX_{i\cdot}^{T} =VDV^T$ where D is a block diagonal matrix with A's on the diagonal repeated $p$ times and $V$ is $vec(X)$, that is has columns of $V$ stacked on to it as a vector.
Can you verify if this is correct? Also does $V$ have rows stacked into it or columns stacked into it? What would $M,b,q,x$ be in the quadratic program formulation?
You are right. Usually $\operatorname{vec}$ stacks columns.
Since $A$ appears twice, I will use $Q$ for the Hessian of the quadratic: