[DOC]: Improve reference example code snippets in Thrust
Open
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 486
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 295
Description
Thrust code snippets under the reference page of our algorithms are poor in two way.
1. Although we need to keep the concise we also need to make them more complete. Per the cppreference style of examples, we need clear distinction between input and output in the text. Encourage the use of `thrust::device_vector` instead of custom allocated arrays. Showcase both generic cases and edge cases.
2. Extract them to literalincludes to make sure they are full compilable scripts that can be cut pasted into `main()`. It's very discouraging for a new user when that's not the case. This should also resolve:
- #2792
- #2747
- #2748.
Contributor guide
Assessment
This issue has not been assessed yet.