Dot Product VI

Owning Palette: Linear Algebra VIs

Requires: Base Development System

Computes the dot product of X Vector and Y Vector. The data types you wire to the X Vector and Y Vector inputs determine the polymorphic instance to use.

Details  

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Real Dot Product

X Vector is the first input vector. The number of elements in X Vector must be equal to the number of elements in Y Vector. If the number of elements in the X Vector is zero or is different from the number of elements in Y Vector, the dot product is undefined and is set to NaN.
Y Vector is the second input vector. If Y Vector is an empty array, the dot product is NaN.
X * Y is the dot product.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Complex Dot Product

X Vector is the first input vector. The number of elements in X Vector must be equal to the number of elements in Y Vector. If the number of elements in X Vector is zero or is different from the number of elements in Y Vector, the dot product is undefined and is set to NaN.
Y Vector is the second input vector. If Y Vector is an empty array, the dot product is NaN.
X * Y is the dot product.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Dot Product Details

Let X represent the input sequence X Vector and Y represent the input sequence Y Vector. The VI calculates the dot product X * Y using the following equation.

where n is the number of data points and yi* is the complex conjugate of yi. Notice that the output value X * Y is a scalar value.