Function

vDSP_zcspec

Computes the cross-spectrum of two complex single-precision vectors.

Declaration

void vDSP_zcspec(const DSPSplitComplex *__A, const DSPSplitComplex *__B, const DSPSplitComplex *__C, vDSP_Length __N);

Parameters

__A

Single-precision complex input vector with a stride of 1.

__B

Single-precision complex input vector with a stride of 1.

__C

Single-precision complex input-output vector, with a stride of 1.

__N

The number of elements to process.

Discussion

This function computes the cross-spectrum of complex input vectors A and B: it multiplies elements of B by the complex conjugates of elements of A. The results are added to complex input-output vector C. C should contain valid data from previous processing or should be initialized according to your needs before calling this function.

mathematical formula

See Also

Vector-to-Vector Spectra Computation

vDSP_zcspecD

Computes the cross-spectrum of two complex double-precision vectors.