log_sum_exp: Log-sum-exp function

View source: R/math_functions.R

log_sum_expR Documentation

Log-sum-exp function

Description

Log-sum-exp function

Usage

log_sum_exp(x, y = NULL)

Arguments

x

A numeric vector or scalar.

y

An optional numeric scalar.

Value

The log of the sum of the exponentials.


BayesRTMB documentation built on Nov. 24, 2026, 9:06 a.m.