[DOC]: Documentation of thrust::reduce_by_key
states to select the _first_ key of a range of consecutively equal keys but selects the _last_
#1282
Labels
doc
Documentation-related items.
Is this a duplicate?
Is this for new documentation, or an update to existing docs?
New
Describe the incorrect/future/missing documentation
Docs of
thrust::reduce_by_key
incorrectly states to select the first key of a range of consecutively equal keys, however, we select the last key of such range.Documentation of
cub::DeviceReduce::ReduceByKey
makes the same claim. CUB's implementation also looks contrary to this claim.The following is a reproducer for thrust was provided by Archith Bency:
If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.
Thrust:
https://thrust.github.io/doc/group__reductions_ga633d78d4cb2650624ec354c9abd0c97f.html#ga633d78d4cb2650624ec354c9abd0c97f
CUB:
https://nvlabs.github.io/cub/structcub_1_1_device_reduce.html#a303ae673ac32825f95912b4bfff8bef1
The text was updated successfully, but these errors were encountered: