__device__ float tgammaf ( float  x  ) 

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

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