Contains protable wrappers around cmath functions and some cuda specific functions.
More...
|
|
template<typename T > |
constexpr std::enable_if_t< std::is_arithmetic< T >::value, T > | max (T const a, T const b) |
|
template<typename T > |
constexpr std::enable_if_t< std::is_arithmetic< T >::value, T > | min (T const a, T const b) |
|
float | abs (float const x) |
|
double | abs (double const x) |
|
template<typename T > |
std::enable_if_t< std::is_integral< T >::value, T > | abs (T const x) |
|
|
float | sqrt (float const x) |
|
template<typename T > |
std::enable_if_t< std::is_arithmetic< T >::value, double > | sqrt (T const x) |
|
float | invSqrt (float const x) |
|
template<typename T > |
std::enable_if_t< std::is_arithmetic< T >::value, double > | invSqrt (T const x) |
|
|
float | sin (float const theta) |
|
double | sin (double const theta) |
|
float | cos (float const theta) |
|
double | cos (double const theta) |
|
float | tan (float const theta) |
|
double | tan (double const theta) |
|
void | sincos (float const theta, float &sinTheta, float &cosTheta) |
| Compute the sine and cosine of theta . More...
|
|
void | sincos (double const theta, double &sinTheta, double &cosTheta) |
| Compute the sine and cosine of theta . More...
|
|
|
float | asin (float const x) |
|
double | asin (double const x) |
|
float | acos (float const x) |
|
double | acos (double const x) |
|
float | atan2 (float const y, float const x) |
|
double | atan2 (double const y, double const x) |
|
Contains protable wrappers around cmath functions and some cuda specific functions.