docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
cmath_node.h File Reference

Go to the source code of this file.

Classes

class  sdfg::math::cmath::CMathNode
class  sdfg::math::cmath::CMathNodeSerializer
class  sdfg::math::cmath::CMathNodeDispatcher

Namespaces

namespace  sdfg
namespace  sdfg::math
namespace  sdfg::math::cmath

Enumerations

enum class  sdfg::math::cmath::CMathFunction {
  sdfg::math::cmath::sin , sdfg::math::cmath::cos , sdfg::math::cmath::tan , sdfg::math::cmath::asin ,
  sdfg::math::cmath::acos , sdfg::math::cmath::atan , sdfg::math::cmath::atan2 , sdfg::math::cmath::sinh ,
  sdfg::math::cmath::cosh , sdfg::math::cmath::tanh , sdfg::math::cmath::asinh , sdfg::math::cmath::acosh ,
  sdfg::math::cmath::atanh , sdfg::math::cmath::exp , sdfg::math::cmath::exp2 , sdfg::math::cmath::exp10 ,
  sdfg::math::cmath::expm1 , sdfg::math::cmath::log , sdfg::math::cmath::log10 , sdfg::math::cmath::log2 ,
  sdfg::math::cmath::log1p , sdfg::math::cmath::pow , sdfg::math::cmath::sqrt , sdfg::math::cmath::cbrt ,
  sdfg::math::cmath::hypot , sdfg::math::cmath::erf , sdfg::math::cmath::erfc , sdfg::math::cmath::tgamma ,
  sdfg::math::cmath::lgamma , sdfg::math::cmath::fabs , sdfg::math::cmath::ceil , sdfg::math::cmath::floor ,
  sdfg::math::cmath::trunc , sdfg::math::cmath::round , sdfg::math::cmath::lround , sdfg::math::cmath::llround ,
  sdfg::math::cmath::roundeven , sdfg::math::cmath::nearbyint , sdfg::math::cmath::rint , sdfg::math::cmath::lrint ,
  sdfg::math::cmath::llrint , sdfg::math::cmath::fmod , sdfg::math::cmath::remainder , sdfg::math::cmath::frexp ,
  sdfg::math::cmath::ldexp , sdfg::math::cmath::modf , sdfg::math::cmath::scalbn , sdfg::math::cmath::scalbln ,
  sdfg::math::cmath::ilogb , sdfg::math::cmath::logb , sdfg::math::cmath::nextafter , sdfg::math::cmath::nexttoward ,
  sdfg::math::cmath::copysign , sdfg::math::cmath::fmax , sdfg::math::cmath::fmin , sdfg::math::cmath::fdim ,
  sdfg::math::cmath::fma
}
 Enumeration of C math library functions. More...

Functions

data_flow::LibraryNodeCode sdfg::math::cmath::LibraryNodeType_CMath ("CMath")
data_flow::LibraryNodeCode sdfg::math::cmath::LibraryNodeType_CMath_Deprecated ("Intrinsic")
constexpr size_t sdfg::math::cmath::cmath_function_to_arity (CMathFunction func)
 Get arity of CMathFunction enum.
constexpr uint64_t sdfg::math::cmath::cmath_function_to_flop (CMathFunction func)
 Approximate flop-equivalent cost of a libm call.
constexpr const char * sdfg::math::cmath::cmath_function_to_stem (CMathFunction func)
 Convert CMathFunction enum to function name stem (without type suffix).
CMathFunction sdfg::math::cmath::string_to_cmath_function (const std::string &name)
std::string sdfg::math::cmath::get_cmath_intrinsic_name (CMathFunction func, types::PrimitiveType prim_type)
 Get the correct C math intrinsic name for a given function and primitive type.
std::string sdfg::math::cmath::get_cmath_approximate_intrinsic_name (CMathFunction func, types::PrimitiveType prim_type)
 Fast, approximate CUDA/HIP device intrinsic for a function, if one exists.