I was looking at the topological group defined by $A=\left \{ \begin{pmatrix} \lambda_1 & & \\ & \ddots & \\ & & \lambda_n \end{pmatrix} : \forall 1 \leq i \leq n, \lambda_j \in \mathbb{R}\backslash \{0\} \right \}$ today, and it's said to be a closed abelian subgroup of $GL(n, \mathbb{R})$.
Unfortunately, I just have no idea how to show it is closed. I'm sure it's probably a matter of finding the good continuous map such that it is the preimage of a closed set but I have absolutely no clue what it could be.
For example, I can map each matrix to one fixed element of the diagonal (say, $\lambda_1$). Then the I can look at it $A$ as the preimage of $\mathbb{R}\setminus\{0\}$. But $\mathbb{R}\setminus\{0\}$ is open, when I need it closed to conclude.
I'd really appreciate a hand with this, please!