|
inlineconstexpr |
Computes the sum of its arguments.
Defined in Header
Parameters
Return value
The value of the sum of the arguments is returned.
+ is supported for two parameters, the + operator on standard scalar types is the original one and so can lead to automatic promotion.Masked Call
The call eve::add[mask](x, ...) provides a masked version of add which is equivalent to if_else(mask, eve::add(x, ...), x)
Example
The call eve::saturated(eve::add)(...) computes a saturated version of eve::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.
Example