FleCSI User API Version: 2.4.0
 
Loading...
Searching...
No Matches
executor< S, T, B > Struct Template Reference

Parallel operations given a name for debugging or profiling. More...

Public Member Functions

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 >
reduce (C &&c, F &&f) const
 Reduce the results of a function applied to every element of a range.
 
- Public Member Functions inherited from executor_base< executor< S, T, B > >
void for_each (C &&c, F &&f) const
 
reduce (C &&c, F &&f) const
 

Detailed Description

template<class S, unsigned T, unsigned B>
struct flecsi::exec::executor< S, T, B >

Parallel operations given a name for debugging or profiling.

Member Function Documentation

◆ for_each()

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
csized random-access range, potentially copied

◆ reduce()

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
Rreduction operation type
Aaccumulator type