CxAdd1D

AnalysisLibErrType CxAdd1D (double arrayXReal[], double arrayXImg[], double arrayYReal[], double arrayYImg[], int numberOfElements, double outputReal[], double outputImg[]);

Purpose

Adds two complex 1D arrays. CxAdd1D obtains the 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
arrayXReal double-precision array Real part of the first array to add.
arrayXImg double-precision array Imaginary part of the first array to add.
arrayYReal double-precision array Real part of the second array to add.
arrayYImg double-precision array Imaginary part of the second array to add.
numberOfElements integer Number of elements to add.
Output
Name Type Description
outputReal double-precision array Real part of the result of the complex array addition.
outputImg double-precision array 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.