Single-precision array sum reduction.
Computes via vDSP_sve (single-pass,
pairwise tree-style accumulation — numerically more stable than a serial
loop).
References
Accelerate.framework vDSP_sve.
Parameters
inconst float*Input buffer.
nstd::size_tElement count.
Returns
floatSum of all input elements.