Function

vDSP_zvmags

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

Declaration

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

Parameters

__A

Single-precision complex input vector.

__IA

Address stride for A.

__C

Single-precision real output vector.

__IC

Address stride for C.

__N

The number of elements to process.

Discussion

Calculates the squared magnitudes of complex vector A, leaving the result in 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_zvmagsD

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

vDSP_zvmgsa

Complex vector magnitudes square and add; single precision.

vDSP_zvmgsaD

Complex vector magnitudes square and add; double precision.