Skip to content
fn

vexp_f32

void vexp_f32(const float * in, float * out, int n)

Single-precision elementwise natural exponential.

Computes outi=eini\text{out}_i = e^{\text{in}_i} via vvexpf.

References

Accelerate.framework vvexpf.

Parameters

inconst float*
Input buffer.
outfloat*
Output buffer (may alias in).
nstd::size_t
Element count.

Notes

vForce trades roughly one ulp of accuracy at the extremes for much higher throughput than std::expf.