Lets an algorithm run its operations as one.
Variables | |
| constexpr auto | eve::algo::fuse_operations = ::rbr::flag( fuse_operations_tag{} ) |
|
inlineconstexpr |
#include <eve/module/algo.hpp>Fuses the transformation and the accumulation of eve::algo::transform_reduce into a single call: the callable is given the running sum as a second argument and returns the new sum, a multiply and an add being a single eve::fma for example. By default the two are separate operations, the transformation then the addition. The addition and its zero are still used, to initialise the partial sums and to reduce them at the end.