30 #ifndef SACADO_CMATH_HPP
31 #define SACADO_CMATH_HPP
37 #if !( (defined(_GLIBCXX_USE_C99_MATH_TR1) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || defined(HAVE_SACADO_CXX11) || defined(HAS_C99_TR1_CMATH) || defined(USER_DISABLE_SACADO_TR1_CMATH) )
39 inline float acosh(
float x) {
41 inline float asinh(
float x) {
43 inline float atanh(
float x) {
44 return float(0.5)*
std::log((
float(1.0)+x)/(
float(1.0)-x)); }
46 inline double acosh(
double x) {
48 inline double asinh(
double x) {
50 inline double atanh(
double x) {
51 return double(0.5)*
std::log((
double(1.0)+x)/(
double(1.0)-x)); }
53 #endif // HAS_C99_TR1_CMATH
61 template <
typename Cond,
typename T>
78 #endif // SACADO_CMATH_HPP
#define KOKKOS_INLINE_FUNCTION
KOKKOS_INLINE_FUNCTION T safe_sqrt(const T &x)
KOKKOS_INLINE_FUNCTION T if_then_else(const Cond cond, const T &a, const T &b)