STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Classes | Public Member Functions | Public Types
stapl::composition::m_mr_transform_wf Struct Reference

Workfunction that is one possible algorithmic coarsening of the nested skeleton map_func(functional::map_reduce(), ...). More...

Classes

struct  map_wf
 Coarsened binary workfunction which is map operator for m_mr_transform_wf. More...
 
struct  reduce_wf
 Coarsened binary reduction workfunction defined for result type of map_wf. More...
 

Public Member Functions

template<typename V0 , typename V1 >
result_type operator() (V0 &mat_columns, V1 &vector_piece) const
 Function operator. More...
 

Public Types

typedef std::vector< double > * result_type
 

Detailed Description

Workfunction that is one possible algorithmic coarsening of the nested skeleton map_func(functional::map_reduce(), ...).

Transforms the fine grain specification into a map_reduce operating on a transposed version of the input two dimensional array view, with custom coarsened map and reduce workfunctions.

Implemented with matrix vector multiplication as driving example.

Member Function Documentation

◆ operator()()

template<typename V0 , typename V1 >
result_type stapl::composition::m_mr_transform_wf::operator() ( V0 &  mat_columns,
V1 &  vector_piece 
) const

Function operator.

Parameters
mat_columnsA two dimensional array view.
vector_pieceA one dimensional array view.
Returns
A one dimensional array view containing result of the map_reduce operation.

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