Arg max functor (keeps the value and offset of the first occurrence of the larger item) More...
Arg max functor (keeps the value and offset of the first occurrence of the larger item)
Definition at line 137 of file thread_operators.cuh.
Public Member Functions | |
template<typename T , typename OffsetT > | |
__host__ __device__ __forceinline__ KeyValuePair< OffsetT, T > | operator() (const KeyValuePair< OffsetT, T > &a, const KeyValuePair< OffsetT, T > &b) const |
Boolean max operator, preferring the item having the smaller offset in case of ties. | |
|
inline |
Boolean max operator, preferring the item having the smaller offset in case of ties.
Definition at line 141 of file thread_operators.cuh.