STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::algo_details::adjacent_diff< Functor, Index > Class Template Reference

Work function to compute the difference of two adjacent elements in a view. More...

Public Member Functions

 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...
 

Public Types

typedef void result_type
 

Detailed Description

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
FunctorBinary functor implementing the difference operation.

Member Function Documentation

◆ operator()()

template<typename Functor , typename Index >
template<typename View0 , typename View1 , typename View2 , typename View3 >
void stapl::algo_details::adjacent_diff< Functor, Index >::operator() ( View0 &&  x1,
View1 &&  x2,
View2 &&  y1,
View3 &&  y2 
) const

Compute the difference of two elements.

Parameters
x1Anterior view of the source view provided to the adjacent_difference function.
x2Posterior view of the source view provided to the adjacent_difference function.
y1Anterior view of the output view provided to the adjacent_difference function. Used only to set the first element.
y2Posterior view of the output view provided to the adjacent_difference function.

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