12#ifndef ARCANE_UTILS_MATHAPFLOAT_H
13#define ARCANE_UTILS_MATHAPFLOAT_H
34#ifdef ARCANE_CHECK_MATH
35 if (v == 0.0 || v < 0.0)
71#ifdef ARCANE_CHECK_MATH
89pow(apfloat x, apfloat y)
91#ifdef ARCANE_CHECK_MATH
109 return ((a < b) ? a : b);
122 return ((a < b) ? b : a);
__host__ __device__ Real2 min(Real2 a, Real2 b)
Returns the minimum of two Real2.
T max(const T &a, const T &b, const T &c)
Returns the maximum of three elements.
double toDouble(Real r)
Converts a Real to double.
Namespace for mathematical functions.
__host__ __device__ double pow(double x, double y)
Power function.
__host__ __device__ double floor(double v)
Round v down to the immediately lower integer.
__host__ __device__ double sqrt(double v)
Square root of v.
__host__ __device__ double log(double v)
Natural logarithm of v.
__host__ __device__ double exp(double v)
Exponential of v.
__host__ __device__ void arcaneMathError(long double arg_value, const char *func_name)
Signals an invalid argument in a mathematical function.