![]() |
imate
C++/CUDA Reference
|


Go to the source code of this file.
Namespaces | |
| namespace | cu_arithmetic |
perform arithmetics for __half and __nv_bfloat16 types in round-to-nearest-even mode. | |
| namespace | cu_arithmetics |
Cast from float to __half and __nv_bfloat16 types and vice-versa, and float to double and vice-versa. | |
Functions | |
| template<typename DataType > | |
| __host__ __device__ DataType | cu_arithmetics::abs (const DataType x) |
| Absolute value of a floating point number. | |
| template<> | |
| __host__ __device__ float | cu_arithmetics::abs< float > (const float x) |
Absolute value of a floating point number in __nv_fp8_e5m2 type. | |
| template<> | |
| __host__ __device__ double | cu_arithmetics::abs< double > (const double x) |
Absolute value of a floating point number in double type. | |