Work function that implements the weighted product operation used in weighted_inner_product.
More...
|
| 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...
|
|
|
typedef Op::result_type | result_type |
|
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
-
Op | Binary functor that implements multiplication. |
◆ operator()()
template<typename Op >
template<typename Ref1 , typename Ref2 , typename WtRef >
Computes the product of two input elements and a weight factor.
- Parameters
-
r1 | Reference of element from the first view passed to weighted_inner_product. |
r2 | Reference of element from the second view passed to weighted_inner_product. |
wt | Reference 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: