CxMul1D
AnalysisLibErrType CxMul1D (double arrayXReal[], double arrayXImaginary[], double arrayYReal[], double arrayYImaginary[], ssize_t numberOfElements, double outputArrayReal[], double outputArrayImag[]);
Purpose
Multiplies two complex 1D arrays. CxMul1D obtains the ith element of the resulting complex array using the following formulas:
outputReali = arrayXReali × arrayYReali – arrayXImgi × arrayYImgi
outputImgi = arrayXReali × arrayYImgi + arrayXImgi × arrayYReali
CxMul1D 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 multiply. |
arrayX_Imaginary | double [] | Imaginary part of the first array to multiply. |
arrayY_Real | double [] | Real part of the second array to multiply. |
arrayY_Imaginary | double [] | Imaginary part of the second array to multiply. |
numberOfElements | ssize_t | Number of elements to multiply. |
Output | ||
Name | Type | Description |
outputArray_Real | double [] | Real part of the result of the complex array multiplication. |
outputArray_Imag | double [] | Imaginary part of the result of the complex array multiplication. |
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