__device__ float fabsf ( float  x  ) 

Calculate the absolute value of the input argument x.

Returns:
Returns the absolute value of its argument.
  • fabs($\pm \infty$) returns $+\infty$.
  • fabs($\pm 0$) returns 0.
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