Suppose $D_0$ is a $K\times K$ diagonal matrix with $\pm1$ as its elements. How to construct a matrix $O$ such that $OD_0O^T=D_0$?(NOTE: I'm sorry for previously missing the transpose on the second $O$)
The interesting case is elements in $D_0$ are not all identical and $O$ is not identity -- otherwise the question is trivial.. Also (thanks to your responses but) let's take $O=(D_0)^p$($p$: odd integer) solutions out of consideration, too.
I now clarify my previously unclear expression that I want to know if there is a non-orthonormal $O$ that satisfies this equation. (orthonormal $A$ means $A^TA=I$)
Thanks much!