Template Numerical Library version\ main:bb09b17
|
Wrapper to ParallelFor which makes it run sequentially. More...
#include <TNL/Algorithms/SequentialFor.h>
Static Public Member Functions | |
template<typename Index , typename Function > | |
static void | exec (Index start, Index end, Function f) |
Static method for execution of the loop. | |
Wrapper to ParallelFor which makes it run sequentially.
It is helpfull for debuging or just sequential for loops on GPUs.
|
inlinestatic |
Static method for execution of the loop.
Index | defines the type of indexes over which the loop iterates. |
Function | is the type of function to be called in each iteration. |
start | the for-loop iterates over index interval [start, end). |
end | the for-loop iterates over index interval [start, end). |
f | is the function to be called in each iteration |