What's normally done, assuming you can do this (not always true), is that you construct the diagonal matrix out of the eigenvalues of A, and you construct the columns of C out of the eigenvectors of A. So, solve the eigenvalue problem for A, and post what you get.