asherliu / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

Consider canonizing for_each_n #387

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Its absence makes dispatch more awkward than it needs to be.  Right now we have 
to carry the algo_n all the way to the backend before we can lower to 
<backend>::detail::for_each_n.  Instead, we could generically lower in 
generic::algo_n

Original issue reported on code.google.com by jaredhoberock on 6 Oct 2011 at 10:13

GoogleCodeExporter commented 8 years ago
Also consider returning last from for_each.  It would make lowering algorithms 
like transform which need to return a result less awkward as well.

Original comment by jaredhoberock on 6 Oct 2011 at 11:07

GoogleCodeExporter commented 8 years ago
we decided to do both of these things

Original comment by jaredhoberock on 7 Oct 2011 at 6:10