Definition. Matrix over a semiring [00IS]

For natural numbers m and n, an {\mathopen {}\left (m\times n\right )\mathclose {}}-matrix over a semiring {\mathopen {}\left (S,0,\oplus ,1,\odot \right )\mathclose {}} is given by entries M_{i,j}: S for all i:{\mathopen {}\left [m\right ]\mathclose {}} and j: {\mathopen {}\left [n\right ]\mathclose {}}. We will write \mathrm {Mat}_{S}{\mathopen {}\left (m,n\right )\mathclose {}} for the set of {\mathopen {}\left (m\times n\right )\mathclose {}}-matrices.