Skip to content
fn

vadd_f32

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

Single-precision elementwise vector addition.

Computes outi=ai+bi\text{out}_i = a_i + b_i via vDSP_vadd. Stride-1 contiguous inputs are required; broadcasting is handled at a higher layer.

References

Accelerate.framework vDSP_vadd.

Parameters

a, bconst float*
Input buffers of length nn.
outfloat*
Output buffer of length nn (may alias a or b).
nstd::size_t
Element count.