A submatrix of a matrix is one other matrix obtained by forming the intersection of sure rows and columns, or equivalently by deleting sure rows and columns. Extra exactly, let be an
matrix and let
and
. Then the
matrix
with
is the submatrix of
comprising the weather on the intersection of the rows listed by
and the columns listed by
. For instance, for the matrix
proven with 4 parts highlighted in two alternative ways,
is a submatrix (the intersection of rows and
and columns
and
, or what’s left after deleting row
and column
), however
is emph{not} a submatrix.
Submatrices embrace the matrix parts and the matrix itself, however there are various of intermediate measurement: an
matrix has
submatrices in whole (counting each sq. and nonsquare submatrices).
If and
,
, then
is a principal submatrix of
, which is a submatrix symmetrically situated concerning the diagonal. If, as well as,
,
, then
is a main principal submatrix of
, which is one located within the prime left nook of
.
The determinant of a sq. submatrix is known as a minor. The Laplace enlargement of the determinant expresses the determinant as a weighted sum of minors.
The Colon Notation
In varied programming languages, notably MATLAB, and in numerical linear algebra, a colon notation is used to indicate submatrices consisting of contiguous rows and columns.
For integers and
we denote by
the sequence
. Thus
is one other approach of writing
.
We write for the submatrix of
comprising the intersection of rows
to
and columns
to
, that’s,
We will consider as a projection of
utilizing the corresponding rows and columns of the id matrix:
As particular circumstances, denotes the
th row of
and
the
th column of
.
Listed below are some examples of utilizing the colon notation to extract submatrices in MATLAB. Rows and columns could be listed by a spread utilizing the colon notation or by specifying the required indices in a vector. The matrix used is from the Anymatrix assortment.
>> A = anymatrix('core/beta',5) A = 1 2 3 4 5 2 6 12 20 30 3 12 30 60 105 4 20 60 140 280 5 30 105 280 630 >> A(3:4, [2 4 5]) % Rectangular submatrix. ans = 12 60 105 20 140 280 >> A(1:2,4:5) % Sq., however nonprincipal, submatrix. ans = 4 5 20 30 >> A([3 5],[3 5]) % Principal submatrix. ans = 30 105 105 630
Block Matrices
Submatrices are intimately related to block matrices, that are matrices wherein the weather are themselves matrices. For instance, a matrix
could be thought to be a block
matrix, the place every aspect is a
submatrix of
:
the place
and likewise for the opposite three blocks.
Associated Weblog Posts
This text is a part of the “What Is” collection, out there from https://nhigham.com/index-of-what-is-articles/ and in PDF kind from the GitHub repository https://github.com/higham/what-is.