OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
cub::ReduceByKeyOp< ReductionOpT > Struct Template Reference

< Binary reduction operator to apply to values More...

Detailed Description

template<typename ReductionOpT>
struct cub::ReduceByKeyOp< ReductionOpT >

< Binary reduction operator to apply to values

Definition at line 281 of file thread_operators.cuh.

Public Member Functions

__host__ __device__ __forceinline__ ReduceByKeyOp ()
 Constructor.
 
__host__ __device__ __forceinline__ ReduceByKeyOp (ReductionOpT op)
 Constructor.
 
template<typename KeyValuePairT >
__host__ __device__ __forceinline__ KeyValuePairT operator() (const KeyValuePairT &first, const KeyValuePairT &second)
 Scan operator.
 

Data Fields

ReductionOpT op
 Wrapped reduction operator.
 

Constructor & Destructor Documentation

◆ ReduceByKeyOp() [1/2]

template<typename ReductionOpT >
__host__ __device__ __forceinline__ cub::ReduceByKeyOp< ReductionOpT >::ReduceByKeyOp ( )
inline

Constructor.

Definition at line 287 of file thread_operators.cuh.

◆ ReduceByKeyOp() [2/2]

template<typename ReductionOpT >
__host__ __device__ __forceinline__ cub::ReduceByKeyOp< ReductionOpT >::ReduceByKeyOp ( ReductionOpT  op)
inline

Constructor.

Definition at line 290 of file thread_operators.cuh.

Member Function Documentation

◆ operator()()

template<typename ReductionOpT >
template<typename KeyValuePairT >
__host__ __device__ __forceinline__ KeyValuePairT cub::ReduceByKeyOp< ReductionOpT >::operator() ( const KeyValuePairT &  first,
const KeyValuePairT &  second 
)
inline

Scan operator.

Parameters
firstFirst partial reduction
secondSecond partial reduction

Definition at line 294 of file thread_operators.cuh.

Field Documentation

◆ op

template<typename ReductionOpT >
ReductionOpT cub::ReduceByKeyOp< ReductionOpT >::op

Wrapped reduction operator.

Definition at line 284 of file thread_operators.cuh.


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