Skip to content
fn

vzconj_c64

void vzconj_c64(const float * a, float * out, int n)

Complex C64 conjugation on interleaved storage.

Returns the complex conjugate of an interleaved complex64 vector by negating every imaginary component (every odd-indexed float) and leaving the real components untouched. Implemented as a vDSP_vneg over the stride-2 imaginary view.

Math

outi=ai‾=Re(ai)−i Im(ai)\text{out}_i = \overline{a_i} = \mathrm{Re}(a_i) - i \, \mathrm{Im}(a_i)

References

Accelerate.framework vDSP_vneg.

Parameters

aconst float*
Interleaved complex input, length 2n2n floats.
outfloat*
Interleaved complex output, length 2n2n floats (may alias a).
nstd::size_t
Number of complex elements.