Skip to content
fn

vsadd_f32

void vsadd_f32(const float * in, float scalar, float * out, int n)

Single-precision scalar-vector add broadcast.

Computes outi=ini+s\text{out}_i = \text{in}_i + s via vDSP_vsadd.

References

Accelerate.framework vDSP_vsadd.

Parameters

inconst float*
Input buffer.
scalarfloat
Scalar value added to every element.
outfloat*
Output buffer.
nstd::size_t
Element count.