Go to the documentation of this file.
47 double negdelta = log_b - log_a;
51 return (log_a + log1p(std::exp(negdelta)));
double log_add(double log_a, double log_b)
Safe substitute for log(exp(log_a) + exp(log_b))
const double log_double_min
Constant definition to speed up trunc_log(), trunc_exp() and log_add()
vec log2(const vec &x)
log-2 of the elements
Vec< T > apply_function(T(*f)(T), const Vec< T > &v)
Help function to call for a function: Vec<T> function(Vec<T>)
IT++ compatibility types and functions.
Logarithmic and exponenential functions - header file.
Generated on Tue Dec 10 2024 04:49:37 for IT++ by Doxygen 1.12.0