Work function to compute the difference of two adjacent elements in a view.
More...
|
| adjacent_diff (Functor f, Index first) |
|
template<typename View0 , typename View1 , typename View2 , typename View3 > |
void | operator() (View0 &&x1, View1 &&x2, View2 &&y1, View3 &&y2) const |
| Compute the difference of two elements. More...
|
|
template<typename Functor, typename Index>
class stapl::algo_details::adjacent_diff< Functor, Index >
Work function to compute the difference of two adjacent elements in a view.
- Template Parameters
-
Functor | Binary functor implementing the difference operation. |
◆ operator()()
template<typename Functor , typename Index >
template<typename View0 , typename View1 , typename View2 , typename View3 >
Compute the difference of two elements.
- Parameters
-
x1 | Anterior view of the source view provided to the adjacent_difference function. |
x2 | Posterior view of the source view provided to the adjacent_difference function. |
y1 | Anterior view of the output view provided to the adjacent_difference function. Used only to set the first element. |
y2 | Posterior view of the output view provided to the adjacent_difference function. |
The documentation for this class was generated from the following file: