log_accu_exp: Logarithm of cumulative sum of exponentials

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Stable calculation of log(cumsum(exp(x))) of a numeric or integer object x

Usage

1

Arguments

x

numeric or integer object in either vector or matrix form

Details

if x is a matrix, accumulation is done by column. If x is an array of dimension r \times c \times d, accumulation is along the columns of each submatrix of dimension r \times c.

Value

the logarithm of the cumulative sum of exponentials in x


baruuum/btoolbox documentation built on Aug. 17, 2020, 1:29 a.m.