Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ComponentSum< std::array< Type, N >, Operation > Class Template Reference

Detailed Description

template<typename Type, size_t N, typename Operation>
class thrill::common::ComponentSum< std::array< Type, N >, Operation >

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

Definition at line 118 of file functional.hpp.

Inherits binary_function< std::array< Type, N >, std::array< Type, N >, std::array< Type, N > >.

#include <functional.hpp>

Public Types

using ArrayType = std::array< Type, N >

Public Member Functions

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

Private Attributes

Operation op_

Member Typedef Documentation

using ArrayType = std::array<Type, N>

Definition at line 123 of file functional.hpp.

Constructor & Destructor Documentation

ComponentSum ( const Operation &  op = Operation())

Definition at line 124 of file functional.hpp.

Member Function Documentation

ArrayType operator() ( const ArrayType a,
const ArrayType b 
) const

Definition at line 125 of file functional.hpp.

References gen_data::N.

Member Data Documentation

Operation op_

Definition at line 132 of file functional.hpp.

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