If the transformation is linear and the underlying field is algebraically closed, it is known that all possible choices are in the form of $A\mapsto P^{-1}AP$ or $A\mapsto P^{-1}A^\top P$, where $P$ is any constant but invertible matrix.
For other fields, you should first define what does it mean by "leaving the spectrum unchanged", since a matrix may not have a full spectrum over the ground field. Anyway, you may search for any known results on the internet or on any journal database. Some relevant keywords are "spectrum preserving linear map" and "linear preservers of spectrum/eigenvalues".
:p
– polfosol Feb 24 '17 at 14:18