Definition 1. Let $R$ be a ring. An $m \times n$-matrix in $R$ ($m$, $n \in \N^+$) is a function from $\llbra m \rrbra \times \llbra n \rrbra$ to $R$.
The set of all $m \times n$-matrices in $R$ is
\[\mat_R(m, n) = \fun(\llbra m \rrbra \times \llbra n \rrbra, R).\]An $m \times n$-matrix $M$ can be explicitly written as
\[M = \begin{bmatrix} M(1, 1) & \cdots & M(1, n) \\ \vdots & \ddots & \vdots \\ M(m, 1) & \cdots & M(m, n) \end{bmatrix}.\]