Use the log sum exp trick to improve numerical stability

log_sum_exp(x)

Arguments

x

Vector of values