construct the Kronecker tensor product of two Matrices - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : Standard : LinearAlgebra/KroneckerProduct

LinearAlgebra[KroneckerProduct] - construct the Kronecker tensor product of two Matrices

Calling Sequence

KroneckerProduct(A, B, options)

Parameters

A, B

-

Matrices

options

-

(optional); constructor options for the result object

Description

• 

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](..).

Examples

withLinearAlgebra:

A:=Matrix1,2,3,4,5,6

A:=123456

(1)

B:=Matrix0,x,x,1

B:=0xx1

(2)

KroneckerProductA,B

0x02x03xx12x23x304x05x06x4x45x56x6

(3)

KroneckerProductB,A

000x2x3x0004x5x6xx2x3x1234x5x6x456

(4)

P:=BandMatrix2,4,6,1,2

P:=4624

(5)

Q:=BandMatrixx,2x,3x,1,2

Q:=2x3xx2x

(6)

MultiplyP,QMultiplyQ,P

0000

(7)

B:=KroneckerProductMatrix1,0,0,1,P+KroneckerProductMatrix0,1,1,0,Q

B:=462x3x24x2x2x3x46x2x24

(8)

DeterminantB

x48x2+16

(9)

DeterminantMultiplyP,PMultiplyQ,Q

x48x2+16

(10)

See Also

LinearAlgebra, LinearAlgebra[DiagonalMatrix], LinearAlgebra[OuterProductMatrix], Matrix


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam