TVM  0.9.4
tvm::constant::internal Namespace Reference

Functions

template<typename T >
constexpr T pow (T base, unsigned int exp, T result=1)
 
constexpr double sqrtNewtonRaphson (double x, double curr, double prev=0)
 

Function Documentation

◆ pow()

template<typename T >
constexpr T tvm::constant::internal::pow ( base,
unsigned int  exp,
result = 1 
)
constexpr

Constexpr integer power base^exp Adapted from https://stackoverflow.com/a/17728525

◆ sqrtNewtonRaphson()

constexpr double tvm::constant::internal::sqrtNewtonRaphson ( double  x,
double  curr,
double  prev = 0 
)
constexpr