Class MZipIndexFunctor represents a functor for the zipIndex skeleton of the distributed matrix.
More...
#include <functors.h>
|
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. More...
|
|
virtual | ~MZipIndexFunctor () |
| Destructor.
|
|
void | init (int nl, int ml, int fr, int fc) |
| Initializes its attributes. More...
|
|
| FunctorBase () |
| Default constructor.
|
|
bool | useLocalIndices () const |
| Checks whether indices are local or global. More...
|
|
void | setLocalIndices (bool value) |
| Use this function to configure your functor to use local indices instead of global indices. More...
|
|
int | getTileWidth () const |
| Returns the tile_width. If tiling is not used, -1 will be returned. More...
|
|
void | setTileWidth (int value) |
| Sets the tile width. More...
|
|
void | notify () |
| Notifies all observed objects (additional arguments) to update.
|
|
void | addArgument (ArgumentType *arg) |
| Adds an additional argument to the functor. More...
|
|
virtual | ~FunctorBase () |
| Destructor.
|
|
|
int | nLocal |
|
int | mLocal |
|
int | firstRow |
|
int | firstCol |
|
std::vector< ArgumentType * > | args |
|
int | tile_width |
|
bool | local_indices |
|
template<typename T1, typename T2, typename R>
class msl::MZipIndexFunctor< T1, T2, R >
Class MZipIndexFunctor represents a functor for the zipIndex skeleton of the distributed matrix.
- Template Parameters
-
T1 | Input data type of the first distributed matrix. |
T2 | Input data type of the second distributed matrix. |
R | Output data type. |
template<typename T1 , typename T2 , typename R >
virtual MSL_USERFUNC R msl::MZipIndexFunctor< T1, T2, R >::operator() |
( |
int |
rowIndex, |
|
|
int |
colIndex, |
|
|
T1 |
l_value, |
|
|
T2 |
r_value |
|
) |
| const |
|
pure virtual |
Function call operator has to be implemented by the user. Here, the actual function is implemented.
- Parameters
-
rowIndex | Global row index of the input values. |
colIndex | Global column index of the input values. |
l_value | Input value of the first distributed matrix. |
r_value | Input value of the second distributed matrix. |
- Returns
- Output of the zipIndex function.
The documentation for this class was generated from the following file: