CxAdd1D
AnalysisLibErrType CxAdd1D (double arrayXReal[], double arrayXImaginary[], double arrayYReal[], double arrayYImaginary[], ssize_t numberOfElements, double outputArrayReal[], double outputArrayImag[]);
Purpose
Adds two complex 1D arrays. CxAdd1D obtains the ith element of the resulting complex array using the following formulas:
outputReali = arrayXReali + arrayYReali
outputImgi = arrayXImgi + arrayYImgi
CxAdd1D can perform the operations in place; that is, the input and output complex arrays can be the same.
Parameters
Input | ||
Name | Type | Description |
arrayX_Real | double [] | Real part of the first array to add. |
arrayX_Imaginary | double [] | Imaginary part of the first array to add. |
arrayY_Real | double [] | Real part of the second array to add. |
arrayY_Imaginary | double [] | Imaginary part of the second array to add. |
numberOfElements | ssize_t | Number of elements to add. |
Output | ||
Name | Type | Description |
outputArray_Real | double [] | Real part of the result of the complex array addition. |
outputArray_Imag | double [] | Imaginary part of the result of the complex array addition. |
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: Analysis Library
Include file: analysis.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later