__device__ double fabs ( double  x  ) 

Calculate the absolute value of the input argument x.

Returns:
Returns the absolute value of the input 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-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA