Chapter 3 Analysis Library
© National Instruments Corporation 3-15 LabWindows/CVI Standard Libraries
CxSub1D
int status = CxSub1D (double arrayXReal[], double arrayXImaginary[],
double arrayYReal[], double arrayYImaginary[],
int numberofElements, double outputArrayReal[],
double outputArrayImaginary[]);
Purpose
Subtracts two 1D complex arrays. The function obtains the ith element of the resulting complex
array by using the following formulas.
zr xr yr
iii
=−
zi xi yi
iii
=−
The function performs the operations in place; that is, the input and output complex arrays can be
the same.
Parameters
Input arrayXReal double-precision
array Real part of x.
arrayXImaginary double-precision
array Imaginary part of x.
arrayYReal double-precision
array Real part of y.
arrayYImaginary double-precision
array Imaginary part of y.
numberofElements integer Number of elements.
Output outputArrayReal double-precision
array Real part of z.
outputArrayImaginary double-precision
array Imaginary part of z.
Return Value
status integer Refer to error codes in
Table 3-2.