AnalysisLibErrType DotProduct (double vectorX[], double vectorY[], int numberOfElements, double *dotProduct);
Calculates the vector dot product of the input vectors. DotProduct obtains the dot product using the following formula:
| Input | ||
| Name | Type | Description |
| vectorX | double-precision array | First vector used in the computation of the dot product. |
| vectorY | double-precision array | Second vector used in the computation of the dot product. |
| numberOfElements | integer | Number of elements used in the computation of the dot product. |
| Output | ||
| Name | Type | Description |
| dotProduct | double-precision | Dot product of the input vectors. |
| Name | Type | Description |
| status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |