LinearAlgebra
KroneckerProduct
construct the Kronecker tensor product of two Matrices
Calling Sequence
Parameters
Description
Examples
KroneckerProduct(A, B, options)
A, B
-
Matrices
options
(optional); constructor options for the result object
The KroneckerProduct function computes the Kronecker tensor product of the matrices A and B.
If A has m rows and n columns, and B has p rows and q columns, then the output is a Matrix with m*p rows and n*q columns. The output can be thought of as a partitioned matrix with m by n blocks of size p by q. The (i,j)th block in the output is then Ai,j·B.
The KroneckerProduct function can be used to compute the abstract tensor product of the two linear transformations represented by A and B, but is additionally very useful in constructing block matrices.
The constructor options provide additional information (readonly, shape, storage, order, datatype, and attributes) to the Matrix constructor that builds the result. These options may also be provided in the form outputoptions=[...], where [...] represents a Maple list. If a constructor option is provided in both the calling sequence directly and in an outputoptions option, the latter takes precedence (regardless of the order).
This function is part of the LinearAlgebra package, and so it can be used in the form KroneckerProduct(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[KroneckerProduct](..).
with⁡LinearAlgebra:
A≔Matrix⁡1,2,3,4,5,6
A≔123456
B≔Matrix⁡0,x,−x,1
B≔0x−x1
KroneckerProduct⁡A,B
0x02⁢x03⁢x−x1−2⁢x2−3⁢x304⁢x05⁢x06⁢x−4⁢x4−5⁢x5−6⁢x6
KroneckerProduct⁡B,A
000x2⁢x3⁢x0004⁢x5⁢x6⁢x−x−2⁢x−3⁢x123−4⁢x−5⁢x−6⁢x456
P≔BandMatrix⁡2,4,6,1,2
P≔4624
Q≔BandMatrix⁡x,2⁢x,3⁢x,1,2
Q≔2⁢x3⁢xx2⁢x
Multiply⁡P,Q−Multiply⁡Q,P
0000
B≔KroneckerProduct⁡Matrix⁡1,0,0,1,P+KroneckerProduct⁡Matrix⁡0,1,1,0,Q
B≔462⁢x3⁢x24x2⁢x2⁢x3⁢x46x2⁢x24
Determinant⁡B
x4−8⁢x2+16
Determinant⁡Multiply⁡P,P−Multiply⁡Q,Q
See Also
LinearAlgebra[DiagonalMatrix]
LinearAlgebra[OuterProductMatrix]
Matrix
Download Help Document