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

Class MMapFunctor represents a functor for the map skeleton of the distributed matrix. More...

#include <functors.h>

Inheritance diagram for msl::MMapFunctor< T, R >:
msl::detail::MatrixFunctorBase msl::detail::FunctorBase

Public Member Functions

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. More...
 
virtual ~MMapFunctor ()
 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 T, typename R>
class msl::MMapFunctor< T, R >

Class MMapFunctor represents a functor for the map skeleton of the distributed matrix.

Template Parameters
TInput data type.
ROutput data type.

Member Function Documentation

template<typename T , typename R >
virtual MSL_USERFUNC R msl::MMapFunctor< T, R >::operator() ( value) const
pure virtual

Function call operator has to be implemented by the user. Here, the actual function is implemented.

Parameters
valueInput for the map function.
Returns
Output of the map function.

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