DASH
0.3.0
|
Stencil point with raletive coordinates for N dimensions e.g. More...
#include <Stencil.h>
Public Types | |
using | coefficient_t = CoeffT |
Public Member Functions | |
StencilPoint () | |
Default Contructor. More... | |
template<typename... Values> | |
constexpr | StencilPoint (typename std::enable_if< sizeof...(Values)==NumDimensions - 1, spoint_value_t >::type value, Values... values) |
Constructor. More... | |
template<typename... Values> | |
constexpr | StencilPoint (typename std::enable_if< sizeof...(Values)==NumDimensions - 1, CoeffT >::type coefficient, spoint_value_t value, Values... values) |
Constructor. More... | |
int | max () const |
Returns maximum distance to center over all dimensions. More... | |
template<typename ElementCoordsT > | |
ElementCoordsT | stencil_coords (ElementCoordsT &coords) const |
Returns coordinates adjusted by stencil point. More... | |
template<typename ElementCoordsT , typename ViewSpecT > | |
std::pair< ElementCoordsT, bool > | stencil_coords_check (ElementCoordsT coords, const ViewSpecT &view) const |
Returns coordinates adjusted by a stencil point and a boolean to indicate a if the adjusted coordinate points to elements out of the given ViewSpecpossible (inside: true, else: false). More... | |
template<typename ElementCoordsT , typename ViewSpecT > | |
std::pair< ElementCoordsT, bool > | stencil_coords_check_abort (ElementCoordsT coords, const ViewSpecT &view) const |
Returns coordinates adjusted by a stencil point and a boolean to indicate a if the adjusted coordinate points to elements out of the given ViewSpec: possible (inside: true, else: false). More... | |
CoeffT | coefficient () const |
Returns the coefficient for this stencil point. More... | |
constexpr const std::array< spoint_value_t, NumDimensions > & | values () const |
Return value with all dimensions as array of NumDimensions elements. More... | |
spoint_value_t | dim (dim_t dimension) const |
The value in the given dimension. More... | |
constexpr spoint_value_t | operator[] (size_t dimension) const |
Subscript operator, access to value in dimension given by index. More... | |
spoint_value_t & | operator[] (size_t dimension) |
Subscript assignment operator, access to value in dimension given by index. More... | |
constexpr bool | operator== (const self_t &other) const |
Equality comparison operator. More... | |
constexpr bool | operator!= (const self_t &other) const |
Equality comparison operator. More... | |
constexpr dim_t | rank () const |
The number of dimensions of the value. More... | |
Static Public Member Functions | |
template<typename ElementCoordsT > | |
static ElementCoordsT | stencil_coords (ElementCoordsT coords, const StencilPoint< NumDimensions, CoeffT > &stencilp) |
Returns coordinates adjusted by a given stencil point. More... | |
static constexpr dim_t | ndim () |
The number of dimensions of the value. More... | |
Stencil point with raletive coordinates for N dimensions e.g.
StencilPoint<2>(-1,-1) -> north west
|
inline |
Default Contructor.
All stencil point values are 0 and default coefficient = 1.0.
Definition at line 33 of file Stencil.h.
|
inline |
Constructor.
Custom stencil point values for all dimensions and default coefficient = 1.0.
Definition at line 46 of file Stencil.h.
|
inline |
Constructor.
Custom values and custom coefficient.
Definition at line 58 of file Stencil.h.
|
inline |
Returns the coefficient for this stencil point.
Definition at line 139 of file Stencil.h.
References dash::halo::StencilPoint< NumDimensions, CoeffT >::coefficient().
Referenced by dash::halo::StencilPoint< NumDimensions, CoeffT >::coefficient().
|
inlineinherited |
The value in the given dimension.
dimension | The dimension |
Definition at line 152 of file Dimensional.h.
|
inline |
Returns maximum distance to center over all dimensions.
Definition at line 69 of file Stencil.h.
|
inlinestaticinherited |
The number of dimensions of the value.
Definition at line 207 of file Dimensional.h.
|
inlineinherited |
Equality comparison operator.
Definition at line 193 of file Dimensional.h.
|
inlineinherited |
Equality comparison operator.
Definition at line 186 of file Dimensional.h.
|
inlineinherited |
Subscript operator, access to value in dimension given by index.
Alias for dim
.
dimension | The dimension |
Definition at line 167 of file Dimensional.h.
|
inlineinherited |
Subscript assignment operator, access to value in dimension given by index.
Alias for dim
.
dimension | The dimension |
Definition at line 179 of file Dimensional.h.
|
inlineinherited |
The number of dimensions of the value.
Definition at line 200 of file Dimensional.h.
|
inline |
Returns coordinates adjusted by stencil point.
Definition at line 80 of file Stencil.h.
|
inlinestatic |
Returns coordinates adjusted by a given stencil point.
Definition at line 88 of file Stencil.h.
|
inline |
Returns coordinates adjusted by a stencil point and a boolean to indicate a if the adjusted coordinate points to elements out of the given ViewSpecpossible (inside: true, else: false).
Definition at line 104 of file Stencil.h.
|
inline |
Returns coordinates adjusted by a stencil point and a boolean to indicate a if the adjusted coordinate points to elements out of the given ViewSpec: possible (inside: true, else: false).
If one dimension points to an element outside the ViewSpec this method returns immediately the unfinished adjusted coordinate and true. Otherwise the adjusted coordinate and false is returned,
Definition at line 125 of file Stencil.h.
|
inlineinherited |
Return value with all dimensions as array of NumDimensions
elements.
Definition at line 142 of file Dimensional.h.