Skip to contents

Log-sum-exponential trick.

Usage

log_sum_exp(x)

Arguments

x

A vector to log-sum-exp.

Value

The log of the sum of the exponential of the elements in x.

Author

David Gerard