construct the Kronecker tensor product of two Matrices
KroneckerProduct(A, B, 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](..).
A ≔ Matrix⁡1,2,3,4,5,6
B ≔ Matrix⁡0,x,−x,1
P ≔ BandMatrix⁡2,4,6,1,2
Q ≔ BandMatrix⁡x,2⁢x,3⁢x,1,2
B ≔ KroneckerProduct⁡Matrix⁡1,0,0,1,P+KroneckerProduct⁡Matrix⁡0,1,1,0,Q
Download Help Document