|
inlineconstexpr |
Defined in Header
Parameters
x
, ...xs
: real arguments.tup
: non empty tuple of arguments.c
: Conditional expression masking the operation.m
: Logical value masking the operation.Return value
logspace_add(x, xs...)
is semantically equivalent to log(exp(log(x)) + + exp(log(xs))...)
without causing unnecessary overflows or throwing away too much accuracy.