cub::LowerBound

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

template<typename InputIteratorT, typename OffsetT, typename T>
OffsetT cub::LowerBound(InputIteratorT input, OffsetT num_items, T val)

Returns the offset of the first value within input which does not compare less than val.

Parameters
  • input[in] Input sequence

  • num_items[in] Input sequence length

  • val[in] Search key