3.248. __nv_pow
Prototype:
double @__nv_pow(double %x, double %y)
Description:
Calculate the value of x to the power of y
Returns:
-
__nv_pow( , y) returns for y an integer less than 0.
-
__nv_pow( , y) returns for y an odd integer greater than 0.
-
__nv_pow( , y) returns +0 for y > 0 and not and odd integer.
-
__nv_pow(-1, ) returns 1.
-
__nv_pow(+1, y) returns 1 for any y, even a NaN.
-
__nv_pow(x, ) returns 1 for any x, even a NaN.
-
__nv_pow(x, y) returns a NaN for finite x < 0 and finite non-integer y.
-
__nv_pow(x, ) returns for .
-
__nv_pow(x, ) returns +0 for .
-
__nv_pow(x, ) returns +0 for .
-
__nv_pow(x, ) returns for .
-
__nv_pow( , y) returns -0 for y an odd integer less than 0.
-
__nv_pow( , y) returns +0 for y < 0 and not an odd integer.
-
__nv_pow( , y) returns for y an odd integer greater than 0.
-
__nv_pow( , y) returns for y > 0 and not an odd integer.
-
__nv_pow( , y) returns +0 for y < 0.
-
__nv_pow( , y) returns for y > 0.
For accuracy information see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.
Library Availability:
Compute 2.0: Yes
Compute 3.0: Yes
Compute 3.5: Yes