3.216. __nv_lgammaf
-
float @__nv_lgammaf(float %x)
Calculate the natural logarithm of the absolute value of the gamma function of the input argument.
Calculate the natural logarithm of the absolute value of the gamma function of the input argument
x, namely the value of \(\log_{e}\left|\int_{0}^{\infty} e^{-t}t^{x-1}dt\right|\)Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.
- Returns
__nv_lgammaf(1) returns +0.
__nv_lgammaf(2) returns +0.
__nv_lgammaf(
x) returns \(\pm \infty\) if the correctly calculated value is outside the double floating point range.__nv_lgammaf(
x) returns \(+\infty\) ifx\(\leq\) 0.__nv_lgammaf( \(-\infty\) ) returns \(-\infty\).
__nv_lgammaf( \(+\infty\) ) returns \(+\infty\).