Calculate the exponent of a vector (offset by the max), sum the elements, calculate the log, remove the offset.
logsumexp(x)
x
numeric vector
numeric
The LSE.
logsumexp(1:10)