Skip to content
fn

vcos_f64

void vcos_f64(const double * in, double * out, int n)

Double-precision elementwise cosine. Uses vvcos, with ∣x∣<2−26.5|x| < 2^{-26.5} set to 1; near other multiples of π\pi the result can be 1-3 ulp short of ±1\pm 1.

References

Accelerate.framework vvcos.

Parameters

inconst double*
Input buffer (radians).
outdouble*
Output buffer.
nstd::size_t
Element count.