__device__ float lgammaf ( float  x  ) 

Calculate the natural logarithm of the gamma function of the input argument x, namely the value of $log_{e}|\ \int_{0}^{\infty} e^{-t}t^{x-1}dt|$.

Returns:
  • lgammaf(1) returns +0.
  • lgammaf(2) returns +0.
  • lgammaf(x) returns $\pm \infty$ if the correctly calculated value is outside the single floating point range.
  • lgammaf(x) returns $+\infty$ if x$\leq$ 0.
  • lgammaf($-\infty$) returns $-\infty$.
  • lgammaf($+\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