Table Of Contents

Scalar-Vector Product (G Dataflow)

Version:
    Last Modified: March 15, 2017

    Calculates the product of a scalar and a vector.

    connector_pane_image
    datatype_icon

    y increment

    An integer that determines whether and how this node skips elements in y for the calculation.

    The following table explains how this node behaves depending on the value of y increment.

    Value Behavior
    y increment ≥ number of elements in y Uses only the first element in y.
    1 < y increment < number of element in y Uses only the elements whose indexes are multiples of the value of y increment.
    y increment = 1 Does not skip any elements in y.
    y increment = 0 Returns an error.
    y increment < 0 Reverses the order of the elements, and then uses elements that have indexes that are multiples of the value of y increment.

    Default: 1

    datatype_icon

    x increment

    An integer that determines whether and how this node skips elements in x for the calculation.

    The following table explains how this node behaves depending on the value of x increment.

    Value Behavior
    x increment ≥ number of elements in x Uses only the first element in x.
    1 < x increment < number of element in x Uses only the elements whose indexes are multiples of the value of x increment.
    x increment = 1 Does not skip any elements in x.
    x increment = 0 Returns an error.
    x increment < 0 Reverses the order of the elements, and then uses elements that have indexes that are multiples of the value of x increment.

    Default: 1

    datatype_icon

    x

    Vector of N elements.

    This input accepts the following data types:

    • 1D array of double-precision, floating-point numbers
    • 1D array of complex double-precision, floating-point numbers
    datatype_icon

    y

    Vector of at least N elements, where N is the number of elements in x. If y is an empty vector, this node initializes y to be an N-element vector with all elements set to 0.

    This input accepts the following data types:

    • 1D array of double-precision, floating-point numbers
    • 1D array of complex double-precision, floating-point numbers
    datatype_icon

    alpha

    Scalar that scales x.

    This input accepts the following data types:

    • Double-precision, floating-point numbers
    • Complex double-precision, floating-point numbers

    Default: The default value is 1 if alpha is a double-precision, floating-point number. The default value is 1+0i if alpha is a complex double-precision, floating-point number.

    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

    daxpy

    Vector of the same size as y.

    If you set both x increment and y increment to 1, daxpy returns the result of alpha * x + y for the first N elements, and the value of the element in y with the same index for any remaining elements.

    This output is available only if you wire a 1D array of double-precision, floating-point numbers to x or y.

    datatype_icon

    zaxpy

    Vector of the same size as y.

    If you set both x increment and y increment to 1, zaxpy returns the result of alpha * x + y for the first N elements, and the value of the element in y with the same index for any remaining elements.

    This output is available only if you wire a 1D array of complex double-precision, floating-point numbers to x or y.

    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.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics