DASH
0.3.0
|
Proxy StencilOperator for inner elements only. More...
#include <StencilOperator.h>
Public Member Functions | |
StencilOperatorInner (StencilOperatorT *stencil_op) | |
iterator | begin () noexcept |
Returns the begin iterator for all inner elements. More... | |
const_iterator | begin () const noexcept |
Returns the begin const iterator for all inner elements. More... | |
iterator | end () noexcept |
Returns the end iterator for all inner elements. More... | |
const_iterator | end () const noexcept |
Returns the end const iterator for all inner elements. More... | |
const ViewSpec_t & | view () const |
Returns a view for all inner elements. More... | |
template<typename BinaryFunc = internal::replace<Element_t>> | |
void | set_values_at (const Coords_t &coords, Element_t value, Element_t coefficient_center, BinaryFunc op=BinaryFunc()) |
Modifies all stencil point elements and the center within the inner view. More... | |
template<typename BinaryFunc = std::plus<Element_t>> | |
Element_t | get_value_at (const Coords_t &coords, Element_t coefficient_center, BinaryFunc op=BinaryFunc()) const |
Returns the result of the given operation done on all stencil point elements and the center. More... | |
template<typename Op > | |
void | update (Element_t *begin_dst, Op operation) |
Updates all inner elements using a user-defined stencil operation. More... | |
template<typename Op > | |
void | update (iterator begin, iterator end, Element_t *begin_dst, Op operation) |
Updates all inner elements within a user defined range using a user-defined stencil operation. More... | |
template<typename Op > | |
void | update_blocked (const Coords_t &begin_coords, const Coords_t &end_coords, Element_t *begin_dst, Op operation) |
Updates all inner elements within a user defined range using a user-defined stencil operation. More... | |
Proxy StencilOperator for inner elements only.
Definition at line 30 of file StencilOperator.h.
|
inlinenoexcept |
Returns the begin iterator for all inner elements.
Definition at line 52 of file StencilOperator.h.
|
inlinenoexcept |
Returns the begin const iterator for all inner elements.
Definition at line 57 of file StencilOperator.h.
|
inlinenoexcept |
Returns the end iterator for all inner elements.
Definition at line 62 of file StencilOperator.h.
|
inlinenoexcept |
Returns the end const iterator for all inner elements.
Definition at line 67 of file StencilOperator.h.
|
inline |
Returns the result of the given operation done on all stencil point elements and the center.
The stencil points are multiplied with their coefficent (StencilPoint) and the center is multiplied with the given center coefficient. No test for halo elements. -> useful only for elements with stencil points pointing to inner elements. (no halo elements)
coords | center coordinate |
coefficient | for center |
op | operation to use (e.g. std::plus). default: std::plus |
Definition at line 114 of file StencilOperator.h.
|
inline |
Modifies all stencil point elements and the center within the inner view.
The stencil points are multiplied with their coefficent (StencilPoint) and the center is multiplied with the given center coefficient. The results then modifies the center/stencil point elements via the given operation.
coords | center coordinate |
value | base value for all points |
coefficient | for center |
op | operation to use (e.g. std::plus). default: replace |
Definition at line 87 of file StencilOperator.h.
|
inline |
Updates all inner elements using a user-defined stencil operation.
begin_dst | Pointer to the beginning of the destination memory |
operation | User-definied operation for updating all inner elements |
Definition at line 136 of file StencilOperator.h.
|
inline |
Updates all inner elements within a user defined range using a user-defined stencil operation.
begin | Iterator of the beginnning inner data element |
end | Iterator of the last inner data element |
begin_dst | Pointer to the beginning of the destination memory |
operation | User-definied operation for updating all inner elements |
Definition at line 150 of file StencilOperator.h.
|
inline |
Updates all inner elements within a user defined range using a user-defined stencil operation.
begin | Iterator of the beginnning inner data element |
end | Iterator of the last inner data element |
begin_dst | Pointer to the beginning of the destination memory |
operation | User-definied operation for updating all inner elements |
Definition at line 276 of file StencilOperator.h.
|
inline |
Returns a view for all inner elements.
Definition at line 72 of file StencilOperator.h.