When one performs a non-commutative operation on two numbers there is usually a simple way of swapping between the two possible answers, for example, $5-4=1$ and $4-5=-1$; one can be mapped onto the other simply by multiplying by $-1$
This also holds for division: $1/5=0.2$ can be mapped onto $5/1=5$ by calculating the answer's multiplicative inverse (raising it to $-1$, pattern perhaps?).
Do matrices have any equivalent function that would map $\textbf{AB}$ onto $\textbf{BA}$ without having to know $\textbf{A}$ or $\textbf{B}$?