Table Of Contents

Kronecker Product (G Dataflow)

Last Modified: January 9, 2017

Calculates the Kronecker product of two input matrices.

connector_pane_image
datatype_icon

matrix A

The first input matrix.

This input accepts a 2D array of double-precision, floating point numbers or 2D array of complex double-precision, floating point numbers.

Default: Empty array

datatype_icon

matrix B

The second input matrix.

This input accepts a 2D array of double-precision, floating point numbers or 2D array of complex double-precision, floating point numbers.

Default: Empty array

datatype_icon

error in

Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

Default: No error

datatype_icon

kronecker product

Matrix containing the Kronecker product of the first and second input matrices.

The number of rows in kronecker product is the product of the number of rows in the first and second input matrices. The number of columns in kronecker product is the product of the number of columns in the first and second input matrices.

datatype_icon

error out

Error information. The node produces this output according to standard error behavior.

Algorithm for Calculating the Kronecker Product

If A is an n-by-m matrix and B is a k-by-l matrix, the Kronecker product of A and B, C = AB, results in a matrix C with dimensions nk-by-ml. This node calculates the Kronecker product using the following equation.

C = [ a 11 B a 12 B a 1 m B a 21 B a 22 B a 2 m B a n 1 B a n 2 B a n m B ] n k × m l

For example, if

A = [ 1 2 3 4 ] B = [ 5 6 7 8 ]

then

a 11 B = [ 5 6 7 8 ] a 12 B = [ 10 12 14 16 ] C = [ a 11 B a 12 B a 21 B a 22 B ] = [ 5 6 10 12 7 8 14 16 15 18 20 24 21 24 28 32 ]

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported


Recently Viewed Topics