When we say two groups are isomorphic to each other, do we have to specify the operations on each group? Does this matter? For example, here is a problem from the book 'Algebra and Geometry' by A.F.Beardon:
Let $G$ be the group of real $2\times 2$ matrices of the form $$M(a)= \begin{pmatrix} a & a \\ a & a \\ \end{pmatrix} $$ where $a \neq 0$.
Show that $G$, under the usual multiplication of matrices, is isomorphic to $\mathbb R^*$, the group of non-zero real numbers.
I solved this problem by defining an isomorphism $$\theta(M(a))=2a$$ which does not involve any specification of the operation on group $\mathbb R^*$.
So my question is : When we talk about the isomorphism between two groups, is it important to specify also the operations defining the two groups?