Thrill  0.1
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 98 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

◆ ArrayType

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

Definition at line 103 of file functional.hpp.

Constructor & Destructor Documentation

◆ ComponentSum()

ComponentSum ( const Operation &  op = Operation())

Definition at line 104 of file functional.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 105 of file functional.hpp.

References gen_data::N.

Member Data Documentation

◆ op_

Operation op_

Definition at line 112 of file functional.hpp.

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