log_sum_exp function log_sum_exp(x:Real[_]) -> Real Exponentiate and sum a vector, return the logarithm of the sum.