Would it be correct to define the function $y = 2x$ as the matrix transormation $ \begin{bmatrix} 1 & 0\\ 2 & 0 \end{bmatrix}$ on any two-dimensional vector $\begin{bmatrix} x \\ y \end{bmatrix}$ where $x, y \in \mathbb{R}$?
It feels weird to pass in a two-variable argument, but at the same time the output over the entire domain does seem to be $y = 2x$.