OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
cub::AgentReduceByKey< AgentReduceByKeyPolicyT, KeysInputIteratorT, UniqueOutputIteratorT, ValuesInputIteratorT, AggregatesOutputIteratorT, NumRunsOutputIteratorT, EqualityOpT, ReductionOpT, OffsetT >::GuardedInequalityWrapper< _EqualityOpT > Struct Template Reference

Detailed Description

template<typename AgentReduceByKeyPolicyT, typename KeysInputIteratorT, typename UniqueOutputIteratorT, typename ValuesInputIteratorT, typename AggregatesOutputIteratorT, typename NumRunsOutputIteratorT, typename EqualityOpT, typename ReductionOpT, typename OffsetT>
template<typename _EqualityOpT>
struct cub::AgentReduceByKey< AgentReduceByKeyPolicyT, KeysInputIteratorT, UniqueOutputIteratorT, ValuesInputIteratorT, AggregatesOutputIteratorT, NumRunsOutputIteratorT, EqualityOpT, ReductionOpT, OffsetT >::GuardedInequalityWrapper< _EqualityOpT >

Definition at line 131 of file agent_reduce_by_key.cuh.

Public Member Functions

__host__ __device__ __forceinline__ GuardedInequalityWrapper (_EqualityOpT op, int num_remaining)
 Constructor.
 
template<typename T >
__host__ __device__ __forceinline__ bool operator() (const T &a, const T &b, int idx) const
 Boolean inequality operator, returns (a != b)
 

Data Fields

_EqualityOpT op
 Wrapped equality operator.
 
int num_remaining
 Items remaining.
 

Constructor & Destructor Documentation

◆ GuardedInequalityWrapper()

template<typename AgentReduceByKeyPolicyT , typename KeysInputIteratorT , typename UniqueOutputIteratorT , typename ValuesInputIteratorT , typename AggregatesOutputIteratorT , typename NumRunsOutputIteratorT , typename EqualityOpT , typename ReductionOpT , typename OffsetT >
template<typename _EqualityOpT >
__host__ __device__ __forceinline__ cub::AgentReduceByKey< AgentReduceByKeyPolicyT, KeysInputIteratorT, UniqueOutputIteratorT, ValuesInputIteratorT, AggregatesOutputIteratorT, NumRunsOutputIteratorT, EqualityOpT, ReductionOpT, OffsetT >::GuardedInequalityWrapper< _EqualityOpT >::GuardedInequalityWrapper ( _EqualityOpT  op,
int  num_remaining 
)
inline

Constructor.

Definition at line 138 of file agent_reduce_by_key.cuh.

Member Function Documentation

◆ operator()()

template<typename AgentReduceByKeyPolicyT , typename KeysInputIteratorT , typename UniqueOutputIteratorT , typename ValuesInputIteratorT , typename AggregatesOutputIteratorT , typename NumRunsOutputIteratorT , typename EqualityOpT , typename ReductionOpT , typename OffsetT >
template<typename _EqualityOpT >
template<typename T >
__host__ __device__ __forceinline__ bool cub::AgentReduceByKey< AgentReduceByKeyPolicyT, KeysInputIteratorT, UniqueOutputIteratorT, ValuesInputIteratorT, AggregatesOutputIteratorT, NumRunsOutputIteratorT, EqualityOpT, ReductionOpT, OffsetT >::GuardedInequalityWrapper< _EqualityOpT >::operator() ( const T &  a,
const T &  b,
int  idx 
) const
inline

Boolean inequality operator, returns (a != b)

Definition at line 142 of file agent_reduce_by_key.cuh.

Field Documentation

◆ num_remaining

template<typename AgentReduceByKeyPolicyT , typename KeysInputIteratorT , typename UniqueOutputIteratorT , typename ValuesInputIteratorT , typename AggregatesOutputIteratorT , typename NumRunsOutputIteratorT , typename EqualityOpT , typename ReductionOpT , typename OffsetT >
template<typename _EqualityOpT >
int cub::AgentReduceByKey< AgentReduceByKeyPolicyT, KeysInputIteratorT, UniqueOutputIteratorT, ValuesInputIteratorT, AggregatesOutputIteratorT, NumRunsOutputIteratorT, EqualityOpT, ReductionOpT, OffsetT >::GuardedInequalityWrapper< _EqualityOpT >::num_remaining

Items remaining.

Definition at line 134 of file agent_reduce_by_key.cuh.

◆ op

template<typename AgentReduceByKeyPolicyT , typename KeysInputIteratorT , typename UniqueOutputIteratorT , typename ValuesInputIteratorT , typename AggregatesOutputIteratorT , typename NumRunsOutputIteratorT , typename EqualityOpT , typename ReductionOpT , typename OffsetT >
template<typename _EqualityOpT >
_EqualityOpT cub::AgentReduceByKey< AgentReduceByKeyPolicyT, KeysInputIteratorT, UniqueOutputIteratorT, ValuesInputIteratorT, AggregatesOutputIteratorT, NumRunsOutputIteratorT, EqualityOpT, ReductionOpT, OffsetT >::GuardedInequalityWrapper< _EqualityOpT >::op

Wrapped equality operator.

Definition at line 133 of file agent_reduce_by_key.cuh.


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