R/math_functions.R
log_sum_exp.Rd
Log-sum-exp function
log_sum_exp(x, y = NULL)
A numeric vector or scalar.
An optional numeric scalar.
The log of the sum of the exponentials.