cub::ArgMin

Defined in /home/runner/work/cccl/cccl/cub/cub/thread/thread_operators.cuh

struct ArgMin

Arg min functor (keeps the value and offset of the first occurrence of the smallest item)

Public Functions

template<typename T, typename OffsetT>
inline KeyValuePair<OffsetT, T> operator()(const KeyValuePair<OffsetT, T> &a, const KeyValuePair<OffsetT, T> &b) const

Boolean min operator, preferring the item having the smaller offset in case of ties.