__device__ float logf ( float  x  ) 

Calculate the natural logarithm of the input argument x.

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


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA