|
| template<class C , class F > |
| void | for_each (C &&c, F &&f) const |
| | Apply a function to every element of a range.
|
| |
| template<class R , class A , class C , class F > |
| A | reduce (C &&c, F &&f) const |
| | Reduce the results of a function applied to every element of a range.
|
| |
| void | for_each (C &&c, F &&f) const |
| |
| T | reduce (C &&c, F &&f) const |
| |
template<class S, unsigned T, unsigned B>
struct flecsi::exec::executor< S, T, B >
Parallel operations given a name for debugging or profiling.
template<class S , unsigned T, unsigned B>
template<class C , class F >
| void for_each |
( |
C && | c, |
|
|
F && | f ) const |
Apply a function to every element of a range.
- Parameters
-
| c | sized random-access range, potentially copied |
template<class S , unsigned T, unsigned B>
template<class R , class A , class C , class F >
| A reduce |
( |
C && | c, |
|
|
F && | f ) const |
|
nodiscard |
Reduce the results of a function applied to every element of a range.
- Template Parameters
-
| R | reduction operation type |
| A | accumulator type |