11 #ifndef INCLUDED_IMATHMATH_H
12 #define INCLUDED_IMATHMATH_H
19 IMATH_INTERNAL_NAMESPACE_HEADER_ENTER
37 template <
class T>
struct Math
81 static
T exp (
T x) {
return std::exp (x); }
93 static
T modf (
T x,
T* iptr)
96 T rval (std::modf (
T (x), &ival));
115 static
T fabs (
T x) {
return std::fabs (x); }
138 if (x * x < std::numeric_limits<T>::epsilon())
154 return ((x1 >
x2) ? x1 -
x2 :
x2 - x1) <= e;
167 return ((x1 >
x2) ? x1 -
x2 :
x2 - x1) <= e * ((x1 > 0) ? x1 : -x1);
170 IMATH_INTERNAL_NAMESPACE_HEADER_EXIT
172 #endif // INCLUDED_IMATHMATH_H
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 bool equalWithAbsError(T x1, T x2, T e) IMATH_NOEXCEPT
SYS_API double cos(double x)
SYS_API double fmod(double x, double y)
SYS_API double atan2(double y, double x)
IMATH_HOSTDEVICE constexpr int floor(T x) IMATH_NOEXCEPT
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 bool equalWithRelError(T x1, T x2, T e) IMATH_NOEXCEPT
vfloat4 sqrt(const vfloat4 &a)
SYS_API double log10(double x)
ImageBuf OIIO_API pow(const ImageBuf &A, cspan< float > B, ROI roi={}, int nthreads=0)
SYS_API double asin(double x)
SYS_API double sinh(double x)
SYS_API double cosh(double x)
SYS_API double acos(double x)
SYS_API double hypot(double x, double y)
SYS_API double tanh(double x)
SYS_API double tan(double x)
IMATH_HOSTDEVICE constexpr int ceil(T x) IMATH_NOEXCEPT
#define IMATH_DEPRECATED(msg)
SYS_API double atan(double x)
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE T sinx_over_x(T x)
OIIO_FORCEINLINE T log(const T &v)
SYS_API double sin(double x)