[go: up one dir, main page]

Function cuda_std::intrinsics::cos[][src]

pub unsafe extern "C" fn cos(x: f64) -> f64
Expand description

Calculate the cosine of the input argument (measured in radians)x.

Nvidia docs

Returns

  • __nv_cos( ) returns 1.
  • __nv_cos( ) returns NaN. For accuracy information for this function see the CUDA C Programming Guide, Appendix D.1, Table 7.