Owning Class: vector
Requires: MathScript RT Module
c = dot(a, b)
c = dot(a, b, dim)
Computes the dot product of two vectors.
|a||Specifies a vector or matrix of double-precision, floating-point or complex double-precision, floating-point numbers.|
|b||Specifies a vector or matrix of double-precision, floating-point or complex double-precision, floating-point numbers. b must be the same size as a.|
|dim||Specifies the order in which LabVIEW computes the dot product for matrices. dim is a scalar that accepts the following values.
|c||Returns the dot product of a and b. c is a scalar or vector.|
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||Yes|
A = [1, 2, 3]
B = [0, -3, 2]
C = dot(A, B)