Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 137 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

using VectorType = std::vector<Type>

Definition at line 142 of file functional.hpp.

Constructor & Destructor Documentation

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

Definition at line 143 of file functional.hpp.

Member Function Documentation

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

Definition at line 144 of file functional.hpp.

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

Member Data Documentation

Operation op_
private

Definition at line 154 of file functional.hpp.


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