__device__ double fma ( double  x,
double  y,
double  z 
)

Compute the value of $x \times y + z$ as a single ternary operation. After computing the value to infinite precision, the value is rounded once.

Returns:
Returns the rounded value of $x \times y + z$ as a single operation.
  • fma($\pm \infty$, $\pm 0$, z) returns NaN.
  • fma($\pm 0$, $\pm \infty$, z) returns NaN.
  • fma(x, y, $-\infty$) returns NaN if $x \times y$ is an exact $+\infty$.
  • fma(x, y, $+\infty$) returns NaN if $x \times y$ is an exact $-\infty$.
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