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


updog documentation built on May 29, 2024, 8:13 a.m.