|
inlineconstexpr |
Parameters
x, ...xs: real arguments.tup: non empty tuple of arguments.c: Conditional expression masking the operation.m: Logical value masking the operation.p: modulo p operation. p must be flint less than maxflint.Return value
The value of the sum of the arguments is returned.
add[saturated](...) computes a saturated version of add. Take care that for signed integral entries this kind of addition is not associative at all. This call perform saturated additions in reverse incoming order.strict the option ensures generally faster computation, but strict inequality.strict the option ensures generally faster computation, but strict inequality.x, ...xs parameter are assumed positive and non increasing (or at least with non increasing exponents) adding raw option can speed a bit the accurate summation,+ is supported for two parameters, the + operator on standard scalar types is the original one and so can lead to automatic promotion.{kahan summation](https://en.wikipedia.org/wiki/Kahan_summation_algorithm)