3.268. __nv_pow
-
double @__nv_pow(double %x, double %y)
Calculate the value of first argument to the power of second argument.
Calculate the value of
xto the power ofyNote
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.
- Returns
__nv_pow( \(\pm 0\) ,
y) returns \(\pm \infty\) foryan integer less than 0.__nv_pow( \(\pm 0\) ,
y) returns \(\pm 0\) foryan odd integer greater than 0.__nv_pow( \(\pm 0\) ,
y) returns +0 fory> 0 and not and odd integer.__nv_pow(-1, \(\pm \infty\) ) returns 1.
__nv_pow(+1,
y) returns 1 for anyy, even a NaN.__nv_pow(
x, \(\pm 0\) ) returns 1 for anyx, even a NaN.__nv_pow(
x,y) returns a NaN for finitex< 0 and finite non-integery.__nv_pow(
x, \(-\infty\) ) returns \(+\infty\) for \(| x | < 1\).__nv_pow(
x, \(-\infty\) ) returns +0 for \(| x | > 1\).__nv_pow(
x, \(+\infty\) ) returns +0 for \(| x | < 1\).__nv_pow(
x, \(+\infty\) ) returns \(+\infty\) for \(| x | > 1\).__nv_pow( \(-\infty\) ,
y) returns -0 foryan odd integer less than 0.__nv_pow( \(-\infty\) ,
y) returns +0 fory< 0 and not an odd integer.__nv_pow( \(-\infty\) ,
y) returns \(-\infty\) foryan odd integer greater than 0.__nv_pow( \(-\infty\) ,
y) returns \(+\infty\) fory> 0 and not an odd integer.__nv_pow( \(+\infty\) ,
y) returns +0 fory< 0.__nv_pow( \(+\infty\) ,
y) returns \(+\infty\) fory> 0.