If $A$ is a positive semi-definite matrix and $B$ is a matrix such that $ A = B B $ then $B$ is called the square root of the matrix $A$. The approach to determine this is to write $A$ in the form $A = P^{-1} D P$ with $D$ a diagonal matrix and then you take the square root of the diagonal elements (write it as $D^{1/2}$) and identify $B$ as $P^{-1} D^{1/2} P$.
But what about the following example? Take $A$ as something really simple $$ A = \left( \begin{matrix} 1 & 0 \\ 0 & 1 \end{matrix} \right). $$ This method would give $B$ in a straight forward manner. But, does the method give all solutions? For example what about the matrix $B$ given as $$ B = \left( \begin{matrix} 0 & 1 \\ 1 & 0 \end{matrix} \right). $$ This satisfies $$ B B = \left( \begin{matrix} 0 & 1 \\ 1 & 0 \end{matrix} \right) \left( \begin{matrix} 0 & 1 \\ 1 & 0 \end{matrix} \right) = \left( \begin{matrix} 1 & 0 \\ 0 & 1 \end{matrix} \right) $$ and so qualifies as the square root of $A$.
As a newbie to the field, is it known that there may be other solutions not given by looking at the method alluded to in the link?