log_sum_exp_2: Log-sum-exponential trick using just two doubles.

View source: R/RcppExports.R

log_sum_exp_2R Documentation

Log-sum-exponential trick using just two doubles.

Description

Log-sum-exponential trick using just two doubles.

Usage

log_sum_exp_2(x, y)

Arguments

x

A double.

y

Another double.

Value

The log of the sum of the exponential of x and y.

Author(s)

David Gerard


dcgerard/mupdog documentation built on Dec. 12, 2023, 4 a.m.