Skip to content
fn

vzadd_c64

void vzadd_c64(const float * a, const float * b, float * out, int n)

Complex C64 add / subtract / divide on interleaved storage.

The same layout and loop as vzmul_c64, for the three arithmetic ops the CPU stream used to refuse for complex input ("dtype not supported") while Metal ran them. Division is std::complex's own.

Parameters

a, bconst float*
Interleaved complex buffers, length 2n2n floats.
outfloat*
Interleaved complex output buffer, length 2n2n floats.
nstd::size_t
Number of complex elements (NOT floats).