Single-precision ReLU clamp.
Computes via vDSP_vthres with
threshold (values below zero are replaced by zero).
References
Branchless (x < 0) ? 0 : x rather than vDSP_vthres, which
returns the threshold for NaN and so swallowed NaN on the CPU while
Metal propagated it. Also faster.
Parameters
inconst float*Input buffer.
outfloat*Output buffer.
nstd::size_tElement count.