예제 #1
0
// pow
inline value_type pow_impl(value_type const& arg1, value_type const& arg2)
{
    return std::pow(arg1.to_double(), arg2.to_double());
}
예제 #2
0
 value_type operator() (value_type const& val) const
 {
     return std::fabs(val.to_double());
 }
예제 #3
0
// max
inline value_type max_impl(value_type const& arg1, value_type const& arg2)
{
    return std::max(arg1.to_double(), arg2.to_double());
}