Analysis Library Chapter 3
LabWindows/CVI Standard Libraries 3-18 © National Instruments Corporation
Return Value
status integer Refer to error codes in
Table 3-2.
DotProduct
int status = DotProduct (double vectorX[], double vectorY[],
int numberofElements,
double *dotProduct);
Purpose
Computes the dot product of the vectorX and vectorY input arrays. The function obtains the dot
product by using the following formula:
dotproduct x y x y
ii
i
n
=•= ∗
=
0
1
Parameters
Input vectorX double-precision
array Input vector.
vectorY double-precision
array Input vector.
numberofElements integer Number of elements.
Output dotProduct double-precision Dot product.
Return Value
status integer Refer to error codes in
Table 3-2.