From this post (and other similar ones) we know, in particular, that $$ \forall M\in{\rm GL}(n,\Bbb R),\ \exists P\in{\rm GL}(n,\Bbb R)\ \text{s.t. } PMP^{-1} = M^T\ . \tag{$*$} $$ My question is about the smoothness of the map $F:{\rm GL}(n,\Bbb R)\to{\rm GL}(n,\Bbb R)$ given by $M\mapsto P$, where $P$ satisfies $(*)$ above. Is $F$ smooth as a map between Lie groups?
From the answers to the above linked post, one possible way to construct $P$ (given an $M$) is using the Jordan Canonical Form. Then I suspect that the entries of $P$ may depend polynomially (or in general smoothly) on the entries of the corresponding matrix $M$. But I can't seem to find a reference for this or convince myself "more" rigorously that this is true. So, Is this true? TIA.