Computes log(sum(exp(x) * y)), or log(sum(exp(x))) if all(y == 0), in a numerically robust way.
Source:R/utils.R
log_sum_special.Rd
Computes log(sum(exp(x) * y)), or log(sum(exp(x))) if all(y == 0), in a numerically robust way.
R/utils.R
log_sum_special.Rd
Computes log(sum(exp(x) * y)), or log(sum(exp(x))) if all(y == 0), in a numerically robust way.