Table Of Contents

Kronecker Product (G Dataflow)

Version:
    Last Modified: March 15, 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.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    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.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    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: This product does not support FPGA devices


    Recently Viewed Topics