Assuming I've tested for diagonalization, can I just take the eigenvalues and arbitrarily place them in in the i,j cells to produce a diagonal matrix?
Say I have a matrix $M$ with eigenvalues $\lambda_1 = 4,\; \lambda_2 = \lambda_3 = -2.$
$$M =\begin{bmatrix}{1} & {-3} & {3} \\ {3} & {-5} & {3} \\ {6} & {-6} & {4}\end{bmatrix}$$
And let,
$$A = \begin{bmatrix}4&0&0\\0&-2&0\\0&0&-2\end{bmatrix} , \quad B = \begin{bmatrix}-2&0&0\\0&4&0\\0&0&-2\end{bmatrix} , \quad C = \begin{bmatrix}-2&0&0\\0&-2&0\\0&0&4\end{bmatrix}$$
Are $A , B , C$ valid diagonal matrices , or does the order of the eigenvalues matter?