36 #include "functor_base.h"
48 template <
typename T,
typename R>
77 template <
typename T,
typename R>
91 virtual R
operator() (
int rowIndex,
int colIndex, T value)
const = 0;
101 template <
typename T>
111 template <
typename T,
typename R>
155 stencil_size = value;
177 template <
typename T1,
typename T2,
typename R>
190 virtual R
operator() (T1 l_value, T2 r_value)
const = 0;
208 template <
typename T1,
typename T2,
typename R>
223 virtual R
operator() (
int rowIndex,
int colIndex, T1 l_value, T2 r_value)
const = 0;
240 template <
typename T,
typename R>
253 virtual R
operator() (T value1, T value2)
const = 0;
270 template <
typename T,
typename R>
299 template <
typename T,
typename R>
312 virtual R
operator() (
int index, T value)
const = 0;
322 template <
typename T>
332 template <
typename T,
typename R>
375 stencil_size = value;
396 template <
typename T1,
typename T2,
typename R>
409 virtual R
operator() (T1 l_value, T2 r_value)
const = 0;
427 template <
typename T1,
typename T2,
typename R>
441 virtual R
operator() (
int index, T1 l_value, T2 r_value)
const = 0;
458 template <
typename T,
typename R>
471 virtual R
operator() (T value1, T value2)
const = 0;
487 template <
typename T,
typename R>
virtual ~MZipFunctor()
Destructor.
Definition: functors.h:195
virtual ~MMapFunctor()
Destructor.
Definition: functors.h:65
virtual MSL_USERFUNC R operator()(int rowIndex, int colIndex, T value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
virtual MSL_USERFUNC R operator()(T value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
Class MZipFunctor represents a functor for the zip skeleton of the distributed matrix.
Definition: functors.h:178
virtual MSL_USERFUNC R operator()(T value1, T value2) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
Class AZipIndexFunctor represents a functor for the zipIndex skeleton of the distributed array...
Definition: functors.h:428
Class ArrayFunctorBase represents the base class for all functors to be used with any distributed arr...
Definition: functor_base.h:168
int getStencilSize()
Returns the stencil size.
Definition: functors.h:363
Class MMapIndexFunctor represents a functor for the mapIndex skeleton of the distributed matrix...
Definition: functors.h:78
void setTileWidth(int value)
Sets the tile width.
Definition: functor_base.h:99
virtual MSL_USERFUNC R operator()(int index, T value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
virtual MSL_USERFUNC R operator()(T value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
virtual MSL_USERFUNC R operator()(int index, const PLArray< T > &input) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
Class MatrixFunctorBase represents the base class for all functors to be used with any distributed ma...
Definition: functor_base.h:141
Class PLArray represents a padded local array (partition). It serves as input for the mapStencil skel...
Definition: functors.h:323
Class AZipFunctor represents a functor for the zip skeleton of the distributed array.
Definition: functors.h:397
Class AFoldFunctor represents a functor for the fold skeleton of the distributed array.
Definition: functors.h:459
virtual MSL_USERFUNC R operator()(T1 l_value, T2 r_value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
virtual MSL_USERFUNC R operator()(T1 l_value, T2 r_value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
virtual ~AFoldFunctor()
Destructor.
Definition: functors.h:476
virtual MSL_USERFUNC R operator()(int index, T1 l_value, T2 r_value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
Class MMapStencilFunctor represents a functor for the mapStencil skeleton of the distributed matrix...
Definition: functors.h:112
virtual ~AMapIndexFunctor()
Destructor.
Definition: functors.h:317
virtual MSL_USERFUNC R operator()(int rowIndex, int colIndex, const PLMatrix< T > &input) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
virtual ~FarmFunctor()
Destructor.
Definition: functors.h:504
Class PLMatrix represents a padded local matrix (partition). It serves as input for the mapStencil sk...
Definition: functors.h:102
void setStencilSize(int value)
Sets the stencil size.
Definition: functors.h:373
Class MFoldFunctor represents a functor for the fold skeleton of the distributed matrix.
Definition: functors.h:241
Class AMapIndexFunctor represents a functor for the mapIndex skeleton of the distributed array...
Definition: functors.h:300
virtual MSL_USERFUNC R operator()(T value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
int getStencilSize()
Returns the stencil size.
Definition: functors.h:143
virtual MSL_USERFUNC R operator()(int rowIndex, int colIndex, T1 l_value, T2 r_value) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
Class MMapFunctor represents a functor for the map skeleton of the distributed matrix.
Definition: functors.h:49
virtual ~MFoldFunctor()
Destructor.
Definition: functors.h:258
virtual ~AZipFunctor()
Destructor.
Definition: functors.h:414
virtual ~AMapFunctor()
Destructor.
Definition: functors.h:287
virtual ~MMapIndexFunctor()
Destructor.
Definition: functors.h:96
virtual ~AMapStencilFunctor()
Destructor.
Definition: functors.h:381
virtual MSL_USERFUNC R operator()(T value1, T value2) const =0
Function call operator has to be implemented by the user. Here, the actual function is implemented...
MMapStencilFunctor()
Default Constructor.
Definition: functors.h:120
Class FarmFunctor represents a functor for the farm skeleton.
Definition: functors.h:488
virtual ~MZipIndexFunctor()
Destructor.
Definition: functors.h:228
Class AMapFunctor represents a functor for the fold skeleton of the distributed array.
Definition: functors.h:271
Class AMapStencilFunctor represents a functor for the mapStencil skeleton of the distributed array...
Definition: functors.h:333
AMapStencilFunctor()
Default Constructor.
Definition: functors.h:341
virtual ~MMapStencilFunctor()
Destructor.
Definition: functors.h:161
Class MZipIndexFunctor represents a functor for the zipIndex skeleton of the distributed matrix...
Definition: functors.h:209
void setStencilSize(int value)
Sets the stencil size.
Definition: functors.h:153
Class FarmFunctorBase represents the base class for all functors to be used with the farm skeleton...
Definition: functor_base.h:191
virtual ~AZipIndexFunctor()
Destructor.
Definition: functors.h:446