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
A ≔ 123456
B ≔ Matrix⁡0,x,−x,1
B ≔ 0x−x1
P ≔ BandMatrix⁡2,4,6,1,2
P ≔ 4624
Q ≔ BandMatrix⁡x,2⁢x,3⁢x,1,2
Q ≔ 2⁢x3⁢xx2⁢x
B ≔ KroneckerProduct⁡Matrix⁡1,0,0,1,P+KroneckerProduct⁡Matrix⁡0,1,1,0,Q
B ≔ 462⁢x3⁢x24x2⁢x2⁢x3⁢x46x2⁢x24
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.