dot-lsum function

Log of sum of terms

Log of sum of terms

Computes the log of a sum of positive components, given on the log scale (lx), avoiding numerical overflow.

.lsum(lx, loff)

Arguments

  • lx: vector or matrix of log of terms to add
  • loff: log of offset

Returns

a vector of log sums

Author(s)

Marius Hofert, Martin Maechler (package copula)

  • Maintainer: Leo Belzile
  • License: MIT + file LICENSE
  • Last published: 2025-04-08

Useful links