|
using | stencil_size_t = std::size_t |
|
using | stencil_index_t = std::size_t |
|
using | StencilArray_t = std::array< StencilPointT, NumStencilPoints > |
|
using | StencilPoint_t = StencilPointT |
|
using | DistanceDim_t = std::pair< spoint_value_t, spoint_value_t > |
|
using | DistanceAll_t = std::array< DistanceDim_t, NumDimensions > |
|
using | DistanceTotal_t = std::array< spoint_distance_t, NumDimensions > |
|
|
constexpr | StencilSpec (const StencilArray_t &specs) |
| Constructor. More...
|
|
template<typename... Values> |
constexpr | StencilSpec (const StencilPointT &value, const Values &... values) |
| Constructor. More...
|
|
| StencilSpec (const Self_t &other) |
| Copy Constructor. More...
|
|
constexpr const StencilArray_t & | specs () const |
|
const std::pair< stencil_index_t, bool > | index (StencilPointT stencil) const |
| Returns the stencil point index for a given StencilPoint. More...
|
|
DistanceTotal_t | total_distances () const |
| Returns the total distances of all stencil points for all dimensions. More...
|
|
spoint_distance_t | total_distances (dim_t dim) const |
| Returns the total distances of all stencil points for all dimensions. More...
|
|
DistanceAll_t | minmax_distances () const |
| Returns the minimal and maximal distances of all stencil points for all dimensions. More...
|
|
DistanceDim_t | minmax_distances (dim_t dim) const |
| Returns the minimal and maximal distances of all stencil points for the given dimension. More...
|
|
constexpr const StencilPointT & | operator[] (stencil_index_t index) const |
|
template<typename StencilPointT, std::size_t NumStencilPoints>
class dash::halo::StencilSpec< StencilPointT, NumStencilPoints >
A collection of stencil points (Stencil) e.g.
StencilSpec<dash::StencilPoint<2>, 2,2>({StencilPoint<2>(-1,0), StencilPoint<2>(1,0)}) -> north and south
- Examples:
- ex.11.halo-stencil/main.cpp.
Definition at line 167 of file Stencil.h.
template<typename StencilPointT, std::size_t NumStencilPoints>
template<typename StencilPointT, std::size_t NumStencilPoints>
Returns the minimal and maximal distances of all stencil points for the given dimension.
(minimum (first) <= 0 and maximum (second) >= 0)
Definition at line 287 of file Stencil.h.
288 DistanceDim_t max_dist{};
289 for(
const auto& stencil_point : _specs) {
290 if(stencil_point[dim] < max_dist.first) {
291 max_dist.first = stencil_point[dim];
294 if(stencil_point[dim] > max_dist.second)
295 max_dist.second = stencil_point[dim];