STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::algo_details::wt_inner_product_map_wf< Op > Class Template Reference

Work function that implements the weighted product operation used in weighted_inner_product. More...

Public Member Functions

 wt_inner_product_map_wf (Op const &op)
 
template<typename Ref1 , typename Ref2 , typename WtRef >
result_type operator() (Ref1 const &r1, Ref2 const &r2, WtRef const &wt)
 Computes the product of two input elements and a weight factor. More...
 

Public Types

typedef Op::result_type result_type
 

Detailed Description

template<typename Op>
class stapl::algo_details::wt_inner_product_map_wf< Op >

Work function that implements the weighted product operation used in weighted_inner_product.

Template Parameters
OpBinary functor that implements multiplication.

Member Function Documentation

◆ operator()()

template<typename Op >
template<typename Ref1 , typename Ref2 , typename WtRef >
result_type stapl::algo_details::wt_inner_product_map_wf< Op >::operator() ( Ref1 const &  r1,
Ref2 const &  r2,
WtRef const &  wt 
)

Computes the product of two input elements and a weight factor.

Parameters
r1Reference of element from the first view passed to weighted_inner_product.
r2Reference of element from the second view passed to weighted_inner_product.
wtReference of element from the view of weights passed to weighted_inner_product.
Returns
The product of the weight with the product of the input elements.

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