LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

CxDotProduct

Advanced Analysis Library Only

AnalysisLibErrType CxDotProduct (NIComplexNumber vectorX[], NIComplexNumber vectorY[], ssize_t numberOfElements, NIComplexNumber *dotProduct);

Purpose

Calculates the dot product of the complex input arrays. Use the following formula to obtain the dot product d:

Parameters

Input
Name Type Description
vectorX NIComplexNumber [] First complex input vector.

The following C typedef statement defines the ComplexNum structure:

typedef struct {

double real;
double imaginary;
} ComplexNum;

vectorY NIComplexNumber [] Second complex input vector.

The following C typedef statement defines the ComplexNum structure:

typedef struct {

double real;
double imaginary;
} ComplexNum;

numberOfElements ssize_t Number of elements in each vector.
Output
Name Type Description
dotProduct NIComplexNumber Complex dot product of the input vectors.

Return Value

Name Type Description
status AnalysisLibErrType A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.

Additional Information

Library: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 5.0 and later

Was this information helpful?

Log in to get a better experience