Given $A \in R^{n \times n}$, $A$ symmetric. I'm trying to solve the following minimization problem:
$\underset{u \in R^n, d \in R^n} \min \, \frac{1}{2} \|X - A\|_F^2$ subject to $X = u u^T + \mathrm{diag}(d)$.
Is there a closed form solution to that problem? I'm not even sure if the problem is convex.
I know that for best rank-r approximations there is SVD, but I'm not sure what to do with the additional diagonal part.
EDIT: And what about the case when $diag(d)$ has to be positive definite?