Muesli
 All Classes Namespaces Files Functions Typedefs Enumerations
Public Member Functions | List of all members
msl::MZipFunctor< T1, T2, R > Class Template Referenceabstract

Class MZipFunctor represents a functor for the zip skeleton of the distributed matrix. More...

#include <functors.h>

Inheritance diagram for msl::MZipFunctor< T1, T2, R >:
msl::detail::MatrixFunctorBase msl::detail::FunctorBase

Public Member Functions

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. More...
 
virtual ~MZipFunctor ()
 Destructor.
 
- Public Member Functions inherited from msl::detail::MatrixFunctorBase
void init (int nl, int ml, int fr, int fc)
 Initializes its attributes. More...
 
- Public Member Functions inherited from msl::detail::FunctorBase
 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.
 

Additional Inherited Members

- Protected Attributes inherited from msl::detail::MatrixFunctorBase
int nLocal
 
int mLocal
 
int firstRow
 
int firstCol
 
- Protected Attributes inherited from msl::detail::FunctorBase
std::vector< ArgumentType * > args
 
int tile_width
 
bool local_indices
 

Detailed Description

template<typename T1, typename T2, typename R>
class msl::MZipFunctor< T1, T2, R >

Class MZipFunctor represents a functor for the zip skeleton of the distributed matrix.

Template Parameters
T1Input data type of the first distributed matrix.
T2Input data type of the second distributed matrix.
ROutput data type.

Member Function Documentation

template<typename T1 , typename T2 , typename R >
virtual MSL_USERFUNC R msl::MZipFunctor< T1, T2, R >::operator() ( 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
l_valueInput value of the first distributed matrix.
r_valueInput value of the second distributed matrix.
Returns
Output of the zip function.

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