Thrill  0.1
ComponentSum< std::vector< Type >, Operation > Class Template Reference

Detailed Description

template<typename Type, typename Operation>
class thrill::common::ComponentSum< std::vector< Type >, Operation >

Compute the component-wise sum of two std::vector<T> of same sizes.

Definition at line 117 of file functional.hpp.

Inherits binary_function< std::vector< Type >, std::vector< Type >, std::vector< Type > >.

#include <functional.hpp>

Public Types

using VectorType = std::vector< Type >
 

Public Member Functions

 ComponentSum (const Operation &op=Operation())
 
VectorType operator() (const VectorType &a, const VectorType &b) const
 

Private Attributes

Operation op_
 

Member Typedef Documentation

◆ VectorType

using VectorType = std::vector<Type>

Definition at line 122 of file functional.hpp.

Constructor & Destructor Documentation

◆ ComponentSum()

ComponentSum ( const Operation &  op = Operation())
inlineexplicit

Definition at line 123 of file functional.hpp.

Member Function Documentation

◆ operator()()

VectorType operator() ( const VectorType a,
const VectorType b 
) const
inline

Definition at line 124 of file functional.hpp.

References thrill::common::min(), and min().

Member Data Documentation

◆ op_

Operation op_
private

Definition at line 134 of file functional.hpp.


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