Device/CUDA math functions. More...
Functions | |
| __device__ real | min (real a, real b) |
| Minimum value out of two floating point values. More... | |
| __device__ real | min (real a, real b, real c) |
| Minimum value out of three floating point values. More... | |
| __device__ real | max (real a, real b) |
| Maximum value out of two floating point values. More... | |
| __device__ real | max (real a, real b, real c) |
| Maximum value out of three floating point values. More... | |
| __device__ real | abs (real a) |
| Absolute value of a floating point value. More... | |
| __device__ real | sqrt (real a) |
| Square root of a floating point value. More... | |
| __device__ real | rsqrt (real a) |
| Inverse square root of a floating point value. More... | |
Device/CUDA math functions.
Wrapping CUDA math functionalities to provide correct function for both single and double precision.
Absolute value of a floating point value.
| a | Floating point value |
Definition at line 448 of file cuda_utilities.cu.
Maximum value out of two floating point values.
| a | Floating point value 1 |
| b | Floating point value 2 |
Definition at line 431 of file cuda_utilities.cu.
Maximum value out of three floating point values.
| a | Floating point value 1 |
| b | Floating point value 2 |
| c | Floating point value 3 |
Definition at line 439 of file cuda_utilities.cu.
Here is the call graph for this function:
Minimum value out of two floating point values.
| a | Floating point value 1 |
| b | Floating point value 2 |
Definition at line 414 of file cuda_utilities.cu.
Minimum value out of three floating point values.
| a | Floating point value 1 |
| b | Floating point value 2 |
| c | Floating point value 3 |
Definition at line 422 of file cuda_utilities.cu.
Here is the call graph for this function:
Inverse square root of a floating point value.
| a | Floating point value |
Definition at line 464 of file cuda_utilities.cu.
Here is the call graph for this function:
Square root of a floating point value.
| a | Floating point value |
Definition at line 456 of file cuda_utilities.cu.
Here is the call graph for this function: