Small erratas in documentation

5 views
Skip to first unread message

RaulPPelaez

unread,
Jul 7, 2017, 5:34:47 AM7/7/17
to cub-users
I sometimes see small incoherences in the docs and I thought it would be a good idea to post them somewhere as I encounter them. Again, very little not-so-harmful things.

I believe they are erratas, but maybe it is just me missing out something obvious, so in that case please correct me.

I will be posting them here:
---------------------------------------------------------------------------------------------------------


In https://nvlabs.github.io/cub/classcub_1_1_transform_input_iterator.html

There is a code example with a struct such as:


// Functor for tripling integer values and converting to doubles
struct TripleDoubler

{
    __host__ __device__ __forceinline__
   
double operator()(const int &a) const {

       
return double(a * 2);

   
}

};

Should not it be return double(a*3) ???

---------------------------------------------------------------------------------------------------------


Reply all
Reply to author
Forward
0 new messages