In mathematics, a block matrix or a partitioned matrix is a matrix that is interpreted as having been broken into sections called blocks or submatrices.
Intuitively, a matrix interpreted as a block matrix can be visualized as the original matrix with a collection of horizontal and vertical lines, which break it up, or partition it, into a collection of smaller matrices. For example, the 3x4 matrix presented below is divided by horizontal and vertical lines into four blocks: the top-left 2x3 block, the top-right 2x1 block, the bottom-left 1x3 block, and the bottom-right 1x1 block.
Any matrix may be interpreted as a block matrix in one or more ways, with each interpretation defined by how its rows and columns are partitioned.
This notion can be made more precise for an n {\displaystyle n} by m {\displaystyle m} matrix M {\displaystyle M} by partitioning n {\displaystyle n} into a collection rowgroups {\displaystyle {\text{rowgroups}}} , and then partitioning m {\displaystyle m} into a collection colgroups {\displaystyle {\text{colgroups}}} . The original matrix is then considered as the "total" of these groups, in the sense that the ( i , j ) {\displaystyle (i,j)} entry of the original matrix corresponds in a 1-to-1 way with some ( s , t ) {\displaystyle (s,t)} offset entry of some ( x , y ) {\displaystyle (x,y)} , where x ∈ rowgroups {\displaystyle x\in {\text{rowgroups}}} and y ∈ colgroups {\displaystyle y\in {\text{colgroups}}} .
Block matrix algebra arises in general from biproducts in categories of matrices.