The problem is given by:
$$ \arg \min_{X \in \mathcal{S}^{n}} \frac{1}{2} {\left\| X - A \right\|}_{F}^{2} $$
Where $ \mathcal{S}^{n} $ is the set of Symmetric Matrices of size $ n \times n $ and $ {\left\| \cdot \right\|}_{F} $ is the Frobenius Norm.
So, I know the answer to this problem, but I want to know what I'm wrong.
$$ X = \frac{A + A^T}{2} + \frac{A -A^T}{2} = S + K $$
where $S$ is a symmetric matrix, and $K$ is a skew-symmetric matrix. What I am interested is what the projector onto $S$ looks like.
I believe the $P_S = S(S^TS)^{-1}S^T$, but since $S$ is symmetric $S=S^T$, so $P_S=I$, this is incorrect though because apparently $P_S (A) =\frac{A + A^T}{2} $, which if my projector was correct then $P_S(A)=IA = A$
I did something incorrect here. I'm not sure what $P_S$ should project a matrix into the subspace $S$, which is symmetric matrices. Some insight would be helpful.