A matrix is a -by- tuple of elements for and . The matrix has rows and columns, represented as
Note that by this definition, a ๐น Vector can be viewed as a matrix where one dimension is ; a column vector is a matrix, and a row vector is a matrix.
Generalizing to more than two-dimensions, we get tensors. Mathematically, a tensor is Operations on tensors are usually less defined, but in many cases, we perform matrix operations on two dimensions of the tensor while ignoring the rest.