KroneckerProduct - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


LinearAlgebra

  

KroneckerProduct

  

construct the Kronecker tensor product of two Matrices

 

Calling Sequence

Parameters

Description

Examples

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:

AMatrix1,2,3,4,5,6

A123456

(1)

BMatrix0,x,x,1

B0xx1

(2)

KroneckerProductA,B

0x02x03xx12x23x304x05x06x4x45x56x6

(3)

KroneckerProductB,A

000x2x3x0004x5x6xx2x3x1234x5x6x456

(4)

PBandMatrix2,4,6,1,2

P4624

(5)

QBandMatrixx,2x,3x,1,2

Q2x3xx2x

(6)

MultiplyP,QMultiplyQ,P

0000

(7)

BKroneckerProductMatrix1,0,0,1,P+KroneckerProductMatrix0,1,1,0,Q

B462x3x24x2x2x3x46x2x24

(8)

DeterminantB

x48x2+16

(9)

DeterminantMultiplyP,PMultiplyQ,Q

x48x2+16

(10)

See Also

LinearAlgebra

LinearAlgebra[DiagonalMatrix]

LinearAlgebra[OuterProductMatrix]

Matrix