|
__device__ float powf |
( |
float |
x, |
|
|
float |
y | |
|
) |
| | |
Calculate the value of x to the power of y .
- Returns:
- powf(
, y ) returns for y an integer less than 0. - powf(
, y ) returns for y an odd integer greater than 0. - powf(
, y ) returns +0 for y > 0 and not and odd integer. - powf(-1,
) returns 1. - powf(+1,
y ) returns 1 for any y , even a NaN. - powf(
x , ) returns 1 for any x , even a NaN. - powf(
x , y ) returns a NaN for finite x < 0 and finite non-integer y . - powf(
x , ) returns for . - powf(
x , ) returns +0 for . - powf(
x , ) returns +0 for . - powf(
x , ) returns for . - powf(
, y ) returns -0 for y an odd integer less than 0. - powf(
, y ) returns +0 for y < 0 and not an odd integer. - powf(
, y ) returns for y an odd integer greater than 0. - powf(
, y ) returns for y > 0 and not an odd integer. - powf(
, y ) returns +0 for y < 0. - powf(
, y ) returns for y > 0.
- Note:
- For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-1.
|