core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::NestedLoop< Dim, Axis > Struct Template Reference

Compile-time-unrolled nested loop over [bgn, end) in row-major (axis 0 fastest) order. More...

#include <types.hpp>

Static Public Member Functions

template<typename Func >
static void run (IVec< Dim > &idx, const IVec< Dim > &bgn, const IVec< Dim > &end, Func &&func)
 

Detailed Description

template<int Dim, int Axis>
struct peclet::core::NestedLoop< Dim, Axis >

Compile-time-unrolled nested loop over [bgn, end) in row-major (axis 0 fastest) order.

func receives the current IVec<Dim> index by const-ref. Ported from pbs::NestedLoop.

Definition at line 44 of file types.hpp.

Member Function Documentation

◆ run()

template<int Dim, int Axis>
template<typename Func >
static void peclet::core::NestedLoop< Dim, Axis >::run ( IVec< Dim > &  idx,
const IVec< Dim > &  bgn,
const IVec< Dim > &  end,
Func &&  func 
)
inlinestatic

The documentation for this struct was generated from the following file: