Function

vDSP_zvmgsa

Complex vector magnitudes square and add; single precision.

Declaration

void vDSP_zvmgsa(const DSPSplitComplex *__A, vDSP_Stride __IA, const float *__B, vDSP_Stride __IB, float *__C, vDSP_Stride __IC, vDSP_Length __N);

Parameters

__A

Single-precision complex input vector

__IA

Stride for A

__B

Single-precision real input vector

__IB

Stride for B

__C

Single-precision real output vector

__IC

Stride for C

__N

The number of elements to process

Discussion

Adds the squared magnitudes of complex vector A to real vector B and store the results in real vector C.

mathematical formula

where Re are the real parts of A and Im are the imaginary parts.

See Also

Single-Vector Squaring

vDSP_vsq

Computes the squared value of each element in the supplied single-precision vector.

vDSP_vsqD

Computes the squared value of each element in the supplied double-precision vector.

vDSP_vssq

Computes the signed squared value of each element in the supplied single-precision vector.

vDSP_vssqD

Computes the signed squared value of each element in the supplied double-precision vector.

vDSP_zvmags

Computes the squared magnitude value of each element in the supplied complex single-precision vector.

vDSP_zvmagsD

Computes the squared magnitude value of each element in the supplied complex double-precision vector.

vDSP_zvmgsaD

Complex vector magnitudes square and add; double precision.