Block matrix explained
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.[1] [2]
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.[3] For example, the 3×4 matrix presented below is divided by horizontal and vertical lines into four blocks: the top-left 2×3 block, the top-right 2×1 block, the bottom-left 1×3 block, and the bottom-right 1×1 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
by
matrix
by partitioning
into a collection
, and then partitioning
into a collection
. The original matrix is then considered as the "total" of these groups, in the sense that the
entry of the original matrix corresponds in a
1-to-1 way with some
offset entry of some
, where
and
.
[4] Block matrix algebra arises in general from biproducts in categories of matrices.[5]
Example
The matrix
can be visualized as divided into four blocks, as
The horizontal and vertical lines have no special mathematical meaning,[6] but are a common way to visualize a partition. By this partition,
is partitioned into four 2×2 blocks, as
The partitioned matrix can then be written as[7]
Formal definition
Let
. A
partitioning of
is a representation of
in the form
where
are contiguous submatrices,
, and
.
[8] The elements
of the partition are called
blocks.
By this definition, the blocks in any one column must all have the same number of columns. Similarly, the blocks in any one row must have the same number of rows.
Partitioning methods
A matrix can be partitioned in many ways. For example, a matrix
is said to be
partitioned by columns if it is written as
where
is the
th column of
. A matrix can also be
partitioned by rows:
where
is the row of
.
Common partitions
Often, we encounter the 2×2 partition
particularly in the form where
is a scalar:
Block matrix operations
Transpose
Let
where (This matrix
will be reused in and .) Then its transpose is
and the same equation holds with the transpose replaced by the conjugate transpose.
Block transpose
A special form of matrix transpose can also be defined for block matrices, where individual blocks are reordered but not transposed. Let
be a
block matrix with
blocks
, the block transpose of
is the
block matrix
with
blocks
.
[9] As with the conventional trace operator, the block transpose is a
linear mapping such that
. However, in general the property
does not hold unless the blocks of
and
commute.
Addition
Let
where
, and let
be the matrix defined in . (This matrix
will be reused in .) Then if
,
,
, and
, then
Multiplication
It is possible to use a block partitioned matrix product that involves only algebra on submatrices of the factors. The partitioning of the factors is not arbitrary, however, and requires "conformable partitions"[10] between two matrices
and
such that all submatrix products that will be used are defined.
[11] Let
be the matrix defined in, and let
be the matrix defined in . Then the matrix product
can be performed blockwise, yielding
as an
matrix. The matrices in the resulting matrix
are calculated by multiplying:
[12]
Or, using the Einstein notation that implicitly sums over repeated indices:
Depicting
as a matrix, we have
Inversion
See also: Helmert–Wolf blocking.
If a matrix is partitioned into four blocks, it can be inverted blockwise as follows:
where A and D are square blocks of arbitrary size, and B and C are conformable with them for partitioning. Furthermore, A and the Schur complement of A in P: must be invertible.[13]
Equivalently, by permuting the blocks:
Here, D and the Schur complement of D in P: must be invertible.
If A and D are both invertible, then:
By the Weinstein–Aronszajn identity, one of the two matrices in the block-diagonal matrix is invertible exactly when the other is.
Computing submatrix inverses from the full inverse
By the symmetry between a matrix and its inverse in the block inversion formula, if a matrix P and its inverse P−1 are partitioned conformally:
then the inverse of any principal submatrix can be computed from the corresponding blocks of P−1:
This relationship follows from recognizing that E−1 = A − BD−1C (the Schur complement), and applying the same block inversion formula with the roles of P and P−1 reversed.[14] [15]
Determinant
The formula for the determinant of a
-matrix above continues to hold, under appropriate further assumptions, for a matrix composed of four submatrices
with
and
square. The easiest such formula, which can be proven using either the
Leibniz formula or a factorization involving the
Schur complement, is
Using this formula, we can derive that characteristic polynomials of
\begin{bmatrix}A&0\ C&D\end{bmatrix}
and
\begin{bmatrix}A&B\ 0&D\end{bmatrix}
are same and equal to the product of characteristic polynomials of
and
. Furthermore, If
\begin{bmatrix}A&0\ C&D\end{bmatrix}
or
\begin{bmatrix}A&B\ 0&D\end{bmatrix}
is
diagonalizable, then
and
are diagonalizable too. The converse is false; simply check
\begin{bmatrix}1&1\ 0&1\end{bmatrix}
.
If
is
invertible, one has
and if
is invertible, one has
[16]
If the blocks are square matrices of the same size further formulas hold. For example, if
and
commute (i.e.,
), then
[17] Similar statements hold when
,
, or . Namely, if
, then
Note the change in order of
and
(we have
instead of
). Similarly, if
, then
should be replaced with
(i.e. we get
) and if
, then we should have
. Note for the last two results, you have to use commutativity of the underlying ring, but not for the first two.
This formula has been generalized to matrices composed of more than
blocks, again under appropriate commutativity conditions among the individual blocks.
[18] For
and
, the following formula holds (even if
and
do not commute)
Special types of block matrices
Direct sums and block diagonal matrices
Direct sum
See also: Direct sum of matrices.
For any arbitrary matrices A (of size m × n) and B (of size p × q), we have the direct sum of A and B, denoted by A ⊕ B and defined as
For instance,
This operation generalizes naturally to arbitrary dimensioned arrays (provided that A and B have the same number of dimensions).
Note that any element in the direct sum of two vector spaces of matrices could be represented as a direct sum of two matrices.
Block diagonal matrices
See also: Diagonal matrix. A block diagonal matrix is a block matrix that is a square matrix such that the main-diagonal blocks are square matrices and all off-diagonal blocks are zero matrices.[19] That is, a block diagonal matrix A has the form
where Ak is a square matrix for all k = 1, ..., n. In other words, matrix A is the direct sum of A1, ..., An. It can also be indicated as A1 ⊕ A2 ⊕ ... ⊕ An or diag(A1, A2, ..., An)[20] (the latter being the same formalism used for a diagonal matrix). Any square matrix can trivially be considered a block diagonal matrix with only one block.
For the determinant and trace, the following properties hold:
\begin{align}
\det{A}&=\det{A}1 x … x \det{A}n,
\end{align}
[21] [22] and
\begin{align}
\operatorname{tr}{A}&=\operatorname{tr}{A}1+ … +\operatorname{tr}{A}n.\end{align}
A block diagonal matrix is invertible if and only if each of its main-diagonal blocks are invertible, and in this case its inverse is another block diagonal matrix given by[23]
The eigenvalues and eigenvectors of
are simply those of the
s combined.
Block tridiagonal matrices
See also: Tridiagonal matrix. A block tridiagonal matrix is another special block matrix, which is just like the block diagonal matrix a square matrix, having square matrices (blocks) in the lower diagonal, main diagonal and upper diagonal, with all other blocks being zero matrices. It is essentially a tridiagonal matrix but has submatrices in places of scalars. A block tridiagonal matrix
has the form
where
,
and
are square sub-matrices of the lower, main and upper diagonal respectively.
[24] [25] Block tridiagonal matrices are often encountered in numerical solutions of engineering problems (e.g., computational fluid dynamics). Optimized numerical methods for LU factorization are available[26] and hence efficient solution algorithms for equation systems with a block tridiagonal matrix as coefficient matrix. The Thomas algorithm, used for efficient solution of equation systems involving a tridiagonal matrix can also be applied using matrix operations to block tridiagonal matrices (see also Block LU decomposition).
Block triangular matrices
See also: Triangular matrix. An
matrix
is
upper block triangular (or
block upper triangular[27]) if there are positive integers
such that
and
where the matrix
is
for all
.
[28] Similarly,
is
lower block triangular if
where
is
for all
.
Block Toeplitz matrices
See also: Toeplitz matrix. A block Toeplitz matrix is another special block matrix, which contains blocks that are repeated down the diagonals of the matrix, as a Toeplitz matrix has elements repeated down the diagonal.
A matrix
is
block Toeplitz if
for all
, that is,
where
.
Block Hankel matrices
See also: Hankel matrix.
A matrix
is
block Hankel if
for all
, that is,
where
.
See also
- Kronecker product (matrix direct product resulting in a block matrix)
- Jordan normal form (canonical form of a linear operator on a finite-dimensional complex vector space)
- Strassen algorithm (algorithm for matrix multiplication that is faster than the conventional matrix multiplication algorithm)
References
Notes and References
- Book: Eves, Howard . Howard Eves . Elementary Matrix Theory . 1980 . Dover . New York . 0-486-63946-0 . 37 . registration . reprint . 24 April 2013 . We shall find that it is sometimes convenient to subdivide a matrix into rectangular blocks of elements. This leads us to consider so-called partitioned, or block, matrices..
- Web site: Dobrushkin . Vladimir . Partition Matrices . 2024-03-24 . Linear Algebra with Mathematica.
- Book: Anton, Howard . Elementary Linear Algebra . 1994 . John Wiley . New York . 0-471-58742-7 . 30 . 7th . A matrix can be subdivided or partitioned into smaller matrices by inserting horizontal and vertical rules between selected rows and columns..
- Indhumathi . D. . Sarala . S. . 2014-05-16 . Fragment Analysis and Test Case Generation using F-Measure for Adaptive Random Testing and Partitioned Block based Adaptive Random Testing . International Journal of Computer Applications . 93 . 6 . 13 . 10.5120/16218-5662. 2014IJCA...93f..11I .
- Macedo . H.D. . Oliveira . J.N. . 2013 . Typing linear algebra: A biproduct-oriented approach . 10.1016/j.scico.2012.07.012 . Science of Computer Programming . 78 . 11. 2160–2191 . 1312.4818 .
- Book: Johnston, Nathaniel . Advanced linear and matrix algebra . 2021 . Springer Nature . 978-3-030-52814-0 . Cham, Switzerland . 298.
- Book: Jeffrey, Alan . Matrix operations for engineers and scientists: an essential guide in linear algebra . 2010 . Springer . 978-90-481-9273-1 . Dordrecht [Netherlands] ; New York . 54 . 639165077.
- Book: Stewart, Gilbert W. . Matrix algorithms. 1: Basic decompositions . 1998 . Soc. for Industrial and Applied Mathematics . 978-0-89871-414-2 . Philadelphia, PA . 18–20.
- Mackey . D. Steven . 2006 . Structured linearizations for matrix polynomials . University of Manchester . 1749-9097 . 930686781 .
- Book: Eves, Howard . Howard Eves . Elementary Matrix Theory . 1980 . Dover . New York . 0-486-63946-0 . 37 . registration . reprint . 24 April 2013 . A partitioning as in Theorem 1.9.4 is called a conformable partition of A and B..
- Book: Anton, Howard . Elementary Linear Algebra . 1994 . John Wiley . New York . 0-471-58742-7 . 36 . 7th . ...provided the sizes of the submatrices of A and B are such that the indicated operations can be performed..
- Book: Johnston, Nathaniel . Introduction to linear and matrix algebra . 2021 . Springer Nature . 978-3-030-52811-9 . Cham, Switzerland . 30,425.
- Book: Bernstein, Dennis . Matrix Mathematics . Princeton University Press . 2005 . 44 . 0-691-11802-7 .
- Web site: Is this formula for a matrix block inverse in terms of the entire matrix inverse known?. MathOverflow.
- Escalante-B.. Alberto N.. Wiskott. Laurenz. Improved graph-based SFA: Information preservation complements the slowness principle. Machine Learning. 2016. 10.1007/s10994-016-5563-y. 1412.4679.
- Taboga, Marco (2021). "Determinant of a block matrix", Lectures on matrix algebra.
- J. R.. Silvester. Determinants of Block Matrices. Math. Gaz.. 84. 501. 2000. 460–467. 3620776. 10.2307/3620776. 2021-06-25. 2015-03-18. https://web.archive.org/web/20150318222335/http://www.ee.iisc.ernet.in/new/people/faculty/prasantg/downloads/blocks.pdf. dead.
- Sothanaphan. Nat. Determinants of block matrices with noncommuting blocks. Linear Algebra and Its Applications. January 2017. 512. 202–218. 10.1016/j.laa.2016.10.004. 1805.06027. 119272194.
- Book: Abadir . Karim M. . Matrix Algebra . Magnus . Jan R. . Cambridge University Press . 2005 . 9781139443647 . 97,100,106,111,114,118 . en.
- Book: Gentle, James E. . Matrix Algebra: Theory, Computations, and Applications in Statistics . 2007 . Springer New York Springer e-books . 978-0-387-70873-7 . Springer Texts in Statistics . New York, NY . 47,487.
- Book: Quarteroni . Alfio . Numerical mathematics . Sacco . Riccardo . Saleri . Fausto . 2000 . Springer . 978-0-387-98959-4 . Texts in applied mathematics . New York . 10,13.
- George . Raju K. . Ajayakumar . Abhijith . 2024 . A Course in Linear Algebra . University Texts in the Mathematical Sciences . en . 35,407 . 10.1007/978-981-99-8680-4 . 978-981-99-8679-8 . 2731-9318. subscription .
- Book: Prince, Simon J. D. . Computer vision: models, learning, and inference . 2012 . Cambridge university press . 978-1-107-01179-3 . New York . 531.
- Book: Dietl, Guido K. E. . Linear estimation and detection in Krylov subspaces . 2007 . Springer . 978-3-540-68478-7 . Foundations in signal processing, communications and networking . Berlin ; New York . 85,87 . en . ocm85898525.
- Book: Horn . Roger A. . Matrix analysis . Johnson . Charles R. . 2017 . Cambridge University Press . 978-0-521-83940-2 . Second edition, corrected reprint . New York, NY . 36 . en.
- Book: Datta, Biswa Nath . Numerical linear algebra and applications . 2010 . SIAM . 978-0-89871-685-6 . 2 . Philadelphia, Pa . 168.
- Book: Stewart, Gilbert W. . Matrix algorithms. 2: Eigensystems . 2001 . Soc. for Industrial and Applied Mathematics . 978-0-89871-503-3 . Philadelphia, Pa . 5.
- Book: Bernstein, Dennis S. . Matrix mathematics: theory, facts, and formulas . Princeton University Press . 2009 . 978-0-691-14039-1 . 2 . Princeton, NJ . 168,298 . en.