AnalysisLibErrType CxSub1D (double arrayXReal[], double arrayXImg[], double arrayYReal[], double arrayYImg[], int numberOfElements, double outputReal[], double outputImg[]);
Subtracts two complex 1D arrays. CxSub1D obtains the
element of the resulting complex array using the formulas:
outputReali = arrayXReali – arrayYReali
outputImgi = arrayXImgi – arrayYImgi
CxSub1D can perform the operations in place; that is, the input and output complex arrays can be the same.
| Input | ||
| Name | Type | Description |
| arrayXReal | double-precision array | Real part of the array to subtract from. |
| arrayXImg | double-precision array | Imaginary part of the array to subtract from. |
| arrayYReal | double-precision array | Real part of the array to subtract. |
| arrayYImg | double-precision array | Imaginary part of the array to subtract. |
| numberOfElements | integer | Number of elements to subtract. |
| Output | ||
| Name | Type | Description |
| outputReal | double-precision array | Real part of result of the complex array subtraction. |
| outputImg | double-precision array | Imaginary part of the result of the complex array subtraction. |
| Name | Type | Description |
| status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |