__device__ double log ( double  x  ) 

Calculate the base $e$ logarithm of the input argument x.

Returns:
  • log($\pm 0$) returns $-\infty$.
  • log(1) returns +0.
  • log(x) returns NaN for x < 0.
  • log($+\infty$) returns $+\infty$
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA