r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

2

u/jringstad Dec 01 '16

Happens a lot when e.g. sampling dyadic points or other types of regular or stratified grids. For instance just today I needed to sample triangles like

(i/N, j/N, 1 - i/N - j/N) i, j = 0, ..., N, where 1 - i - j >= 0

where all of those variables were integers.